code: def _ligotimegps(s, ns=0):
      
      from lal import LIGOTimeGPS
      try:
          return LIGOTimeGPS(s, ns)
      except TypeError:
          return LIGOTimeGPS(int(s), int(ns))
docs: Catch TypeError and cast `s` and `ns` to `int`