input: Write a function to calculate the distance between two points on a two-dimensional plane given their coordinates (x1, y1) and (x2, y2). The function should return the computed distance as a floating-point number. If either of the points is not provided, the function should return -1.
  assert calculate_distance(3, 4, -9, -2) == 13.0
  assert calculate_distance(0, 0, 1, 1) == 1.4142135623730951
  assert calculate_distance(0, 0, 0, 0) == 0.0
  assert calculate_distance(3, 4, None, -2) == -1
  assert calculate_distance(None, 4, -9, -2) == -1
output: def calculate_distance(x1, y1, x2, y2):
      if x1 is None or y1 is None or x2 is None or y2 is None:
          return -1
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5