Write a function to calculate the moving average of a given dataset.
Implement calculate_moving_average(data, window_size). Return a list containing the average of every contiguous window of window_size elements. Return an empty list when the window is larger than the dataset. The output may contain floating-point values.
data: a list of numbers.window_size: a positive integer.def calculate_moving_average(data, window_size):