code: def time_seconds(tc_array, year):
      """Return the time object from the timecodes."""
      tc_array = np.array(tc_array, copy=True)
      word = tc_array[:, 0]
      day = word >> 1
      word = tc_array[:, 1].astype(np.uint64)
      msecs = ((127) & word) * 1024
      word = tc_array[:, 2]
      msecs += word & 1023
      msecs *= 1024
      word = tc_array[:, 3]
      msecs += word & 1023
      return (
          np.datetime64(str(year) + "-01-01T00:00:00", "s")
          + msecs[:].astype("timedelta64[ms]")
          + (day - 1)[:].astype("timedelta64[D]")
      )
  
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  import xarray
  from geotiepoints import SatelliteInterpolator
  from pyorbital.geoloc import compute_pixels, get_lonlatalt
  from pyorbital.geoloc_instrument_definitions import avhrr
  from pyorbital.orbital import Orbital
  from satpy._compat import cached_property
  from satpy.readers.aapp_l1b import get_avhrr_lac_chunks
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 1 for calling a global function with example usage: time_seconds(tc_array, year) and returns: unknown