code: def geodetic2conformal(
      geodetic_lat, ell: Ellipsoid = None, deg: bool = True
  ):
      """
      converts from geodetic latitude to conformal latitude
  
      like Matlab map.geodesy.ConformalLatitudeConverter.forward()
  
      Parameters
      ----------
      geodetic_lat : float
           geodetic latitude
      ell : Ellipsoid, optional
           reference ellipsoid (default WGS84)
      deg : bool, optional
           degrees input/output  (False: radians in/out)
  
      Returns
      -------
      conformal_lat : float
           conformal latiude
  
      Notes
      -----
      Equations from J. P. Snyder, "Map Projections - A Working Manual",
      US Geological Survey Professional Paper 1395, US Government Printing
      Office, Washington, DC, 1987, pp. 13-18.
  
      """
  
      geodetic_lat, ell = sanitize(geodetic_lat, ell, deg)
  
      e = ell.eccentricity
      f1 = 1 - e * sin(geodetic_lat)
      f2 = 1 + e * sin(geodetic_lat)
      f3 = 1 - sin(geodetic_lat)
      f4 = 1 + sin(geodetic_lat)
  
      #  compute conformal latitudes with correction for points at +90
      try:
          with warnings.catch_warnings(record=True):
              warnings.simplefilter("error")
              conformal_lat = 2 * atan(
                  sqrt((f4 / f3) * ((f1 / f2) ** e))
              ) - (pi / 2)
      except (ArithmeticError, RuntimeWarning):
          conformal_lat = pi / 2
  
      return degrees(conformal_lat) if deg else conformal_lat
  
imports: from __future__ import annotations
  import warnings
  from math import pi
  from .None import rcurve
  from .ellipsoid import Ellipsoid
  from .mathfun import asinh, atan, atanh, cos, degrees, exp, inf, radians, sign, sin, sqrt, tan
  from .utils import sanitize
label_desc: Use image node_id 7 for calling a global function with example usage: geodetic2conformal(geodetic_lat, ell, deg) and returns: unknown