input: Write a function to calculate the distance between two points on a two-dimensional plane. The function should take four parameters representing the coordinates of the two points and return the distance between them. If any of the parameters are invalid (e.g., not numeric), the function should return -1.
  assert calculate_distance(3, 4, -9, -2)==13.4164
  assert calculate_distance(0, 0, 0, 0)==0.0
  assert calculate_distance(1, 1, 2, 2)==1.41421
  assert calculate_distance("a", "b", "c", "d")==-1
  assert calculate_distance(1, 23, 3, 56)==55.7853
  assert calculate_distance(None, None, None, None)==-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