input: from typing import List
  
  def calculate_mad(values: List[float]) -> float:
      """ Given a list of numeric values, compute the Mean Absolute Deviation
      with respect to the average of the dataset.
      Mean Absolute Deviation measures the mean of the absolute differences 
      between each value and the dataset's mean:
      MAD = mean | x - mean(x) |
      >>> calculate_mad([1.0, 2.0, 3.0, 4.0])
      1.0
      """
output:     if not values:
          return 0.0
      mean = sum(values) / len(values)
      mad = sum(abs(value - mean) for value in values) / len(values)
      return mad