input: Write a function to calculate the Euclidean distance between two points in a two-dimensional plane using their coordinates. If any coordinate is missing or invalid, the function should return -1.
  assert calculate_distance(3, 4, -9, -2) == 13
  assert calculate_distance(0, 0, 0, 0) == 0
  assert calculate_distance(1, 2, 4, 6) == 5
  assert calculate_distance(1, 1, -1, -1) == 2.8284271247461903
  assert calculate_distance(3, 4, None, -2) == -1
  assert calculate_distance(None, None, None, None) == -1
output: def calculate_distance(x1, y1, x2, y2):
      if None in (x1, y1, x2, y2):
          return -1
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5