code: def from_timestamp(timestamp, tz_offset):
      
      utc_dt = datetime.fromtimestamp(timestamp, utc)
      try:
          local_dt = utc_dt.astimezone(tzoffset(tz_offset))
          return local_dt
      except ValueError:
          return utc_dt
docs: Converts a timestamp + tz_offset into an aware datetime instance.