input: Write a function to calculate the distance between two points on a two-dimensional plane. The function should accept four arguments: x1, y1 (coordinates of the first point), x2, y2 (coordinates of the second point). Use the Euclidean distance formula to calculate the distance. If the given coordinates are invalid then 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(5, -5, -5, 5)==14.142135623730951
  assert calculate_distance(100, 100, 99, 99)==1.4142135623730951
output: def calculate_distance(x1, y1, x2, y2):
      if not (isinstance(x1, (int, float)) and isinstance(y1, (int, float)) and isinstance(x2, (int, float)) and isinstance(y2, (int, float))):
          return -1
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5