code: def from_timestamp(microsecond_timestamp):
      
      # Create datetime without losing precision from floating point (yes, this
      # is actually needed):
      return datetime.datetime.fromtimestamp(
          microsecond_timestamp // 1000000, datetime.timezone.utc
      ).replace(microsecond=(microsecond_timestamp % 1000000))
docs: Convert a microsecond timestamp to a UTC datetime instance.