input: Write a function to calculate the distance between two points on a two-dimensional plane using the Euclidean distance formula, where the two points are given as (x1, y1) and (x2, y2). Return the distance as a float. If any of the coordinates are missing, return -1.
  assert calculate_distance((3, 4), (-9, -2))==16.643316977093238
  assert calculate_distance((-1, -1), (-1, -1))==0.0
  assert calculate_distance((0, 0), (0, 0))==0.0
  assert calculate_distance((1, 2), (3, 4))==2.8284271247461903
  assert calculate_distance((), ())==-1
output: def calculate_distance(point1, point2):
      if len(point1) != 2 or len(point2) != 2:
          return -1
      x1, y1 = point1
      x2, y2 = point2
      return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5