code: def datetime2sidereal(time: datetime, lon_radians: float) -> float:
      """
      Convert ``datetime`` to local sidereal time
  
      from D. Vallado "Fundamentals of Astrodynamics and Applications"
  
  
      time : datetime.datetime
          time to convert
      lon_radians : float
          longitude (radians)
  
      Results
      -------
  
      tsr : float
          Local sidereal time
      """
      if isinstance(time, (tuple, list)):
          return [datetime2sidereal(t, lon_radians) for t in time]
  
      try:
          tsr = (
              Time(time)
              .sidereal_time(
                  kind="apparent",
                  longitude=Longitude(lon_radians, unit=u.radian),
              )
              .radian
          )
      except NameError:
          jd = juliandate(str2dt(time))
          # %% Greenwich Sidereal time RADIANS
          gst = greenwichsrt(jd)
          # %% Algorithm 15 p. 188 rotate GST to LOCAL SIDEREAL TIME
          tsr = gst + lon_radians
  
      return tsr
  
imports: from datetime import datetime
  from math import tau
  from .timeconv import str2dt
label_desc: Use image node_id 1 for calling a global function with example usage: datetime2sidereal(time, lon_radians) and returns: tsr, unknown