code: def patch_ligotimegps(module="ligo.lw.lsctables"):
      
      module = import_module(module)
      orig = module.LIGOTimeGPS
      module.LIGOTimeGPS = _ligotimegps
      try:
          yield
      finally:
          module.LIGOTimeGPS = orig
docs: Context manager to on-the-fly patch LIGOTimeGPS to accept all int types