class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
code: def _add_basic_metadata_to_file_content(
      file_content, filename_info, num_grans
  ):
      start_time = filename_info["start_time"]
      end_time = filename_info["end_time"].replace(
          year=start_time.year,
          month=start_time.month,
          day=start_time.day,
      )
      begin_date = start_time.strftime("%Y%m%d")
      begin_time = start_time.strftime("%H%M%S.%fZ")
      ending_date = end_time.strftime("%Y%m%d")
      ending_time = end_time.strftime("%H%M%S.%fZ")
      new_file_content = {
          "{prefix2}/attr/AggregateNumberGranules": num_grans,
          "{prefix2}/attr/AggregateBeginningDate": begin_date,
          "{prefix2}/attr/AggregateBeginningTime": begin_time,
          "{prefix2}/attr/AggregateEndingDate": ending_date,
          "{prefix2}/attr/AggregateEndingTime": ending_time,
          "{prefix2}/attr/G-Ring_Longitude": np.array(
              [0.0, 0.1, 0.2, 0.3]
          ),
          "{prefix2}/attr/G-Ring_Latitude": np.array(
              [0.0, 0.1, 0.2, 0.3]
          ),
          "{prefix2}/attr/AggregateBeginningOrbitNumber": "{0:d}".format(
              filename_info["orbit"]
          ),
          "{prefix2}/attr/AggregateEndingOrbitNumber": "{0:d}".format(
              filename_info["orbit"]
          ),
          "{prefix1}/attr/Instrument_Short_Name": "ATMS",
          "/attr/Platform_Short_Name": "J01",
      }
      file_content.update(new_file_content)
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  from satpy._config import config_search_paths
  from satpy.readers import load_reader
  from satpy.readers.atms_sdr_hdf5 import ATMS_CHANNEL_NAMES
  from satpy.readers.viirs_atms_sdr_base import DATASET_KEYS
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 2 for calling the FakeHDF5_ATMS_SDR_FileHandler obj's underlying member method code with example usage: obj._add_basic_metadata_to_file_content(file_content, filename_info, num_grans) without return types