code: def _ensure_same_altitude(a, b):
      if abs(a.altitude - b.altitude) > 1e-6:
          raise ValueError(
              "Calculating distance between points with different altitudes "
              "is not supported"
          )
  
imports: from math import asin, atan2, cos, sin, sqrt
  from geographiclib.geodesic import Geodesic
  from geopy import units, util
  from geopy.point import Point
  from geopy.units import radians
label_desc: Use image node_id 3 for calling a global function with example usage: _ensure_same_altitude(a, b) without return types