input: Write a function to calculate the distance between two points on a two-dimensional plane given their coordinates (x1, y1) and (x2, y2). If the input points are empty, the function should return 0.0.
  assert calculate_distance((3, 4), (-9, -2)) == 13.0
  assert calculate_distance((0, 0), (1, 1)) == 1.4142135623730951
  assert calculate_distance((1, 1), (1, 1)) == 0.0
  assert calculate_distance((2, 3), (5, 6)) == 4.242640687119285
  assert calculate_distance((), ()) == 0.0
output: def calculate_distance(point1, point2):
      if not point1 or not point2:
          return 0.0
      x1, y1 = point1
      x2, y2 = point2
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5