input: Write a function to calculate the distance between two points on a two-dimensional plane. The function should take in four parameters (x1, y1, x2, y2) representing the coordinates of the two points and return the distance as a floating-point number. If any of the coordinates are invalid (e.g., non-numeric), return -1.
  assert calculate_distance(3, 4, -9, -2) == 13.0
  assert calculate_distance(0, 0, 0, 0) == 0.0
  assert calculate_distance(1, 2, 3, 4) == 2.8284271247461903
  assert calculate_distance(None, 4, -9, -2) == -1
  assert calculate_distance(3, 4, "invalid", -2) == -1
output: def calculate_distance(x1, y1, x2, y2):
      if not all(isinstance(coord, (int, float)) for coord in [x1, y1, x2, y2]):
          return -1
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5