code: def geodetic2rectifying(
      geodetic_lat, ell: Ellipsoid = None, deg: bool = True
  ):
      """
      converts from geodetic latitude to rectifying latitude
  
      like Matlab map.geodesy.RectifyingLatitudeConverter.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
      -------
      rectifying_lat : float
           rectifying 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)
  
      n = ell.thirdflattening
      f1 = 3 * n / 2 - 9 * n**3 / 16
      f2 = 15 * n**2 / 16 - 15 * n**4 / 32
      f3 = 35 * n**3 / 48
      f4 = 315 * n**4 / 512
  
      rectifying_lat = (
          geodetic_lat
          - f1 * sin(2 * geodetic_lat)
          + f2 * sin(4 * geodetic_lat)
          - f3 * sin(6 * geodetic_lat)
          + f4 * sin(8 * geodetic_lat)
      )
  
      return degrees(rectifying_lat) if deg else rectifying_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 8 for calling a global function with example usage: geodetic2rectifying(geodetic_lat, ell, deg) and returns: unknown