class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
code: def _add_data_info_to_file_content(
      self, file_content, filename, data_var_prefix, num_grans
  ):
      # SDR files always produce data with 48 scans per granule even if there are less
      total_rows = DEFAULT_FILE_SHAPE[0] * 48 * num_grans
      new_shape = (total_rows, DEFAULT_FILE_SHAPE[1])
      if filename[2:5] in ["M{:02d}".format(x) for x in range(12)] + [
          "I01",
          "I02",
          "I03",
      ]:
          keys = ["Radiance", "Reflectance"]
      elif filename[2:5] in [
          "M{:02d}".format(x) for x in range(12, 17)
      ] + ["I04", "I05"]:
          keys = ["Radiance", "BrightnessTemperature"]
      else:
          # DNB
          keys = ["Radiance"]
  
      for k in keys:
          k = data_var_prefix + "/" + k
          file_content[k] = np.repeat(
              DEFAULT_FILE_DATA.copy(), 48 * num_grans, axis=0
          )
          file_content[k + "/shape"] = new_shape
          if self.include_factors:
              file_content[k + "Factors"] = np.repeat(
                  DEFAULT_FILE_FACTORS.copy()[None, :],
                  num_grans,
                  axis=0,
              ).ravel()
  
imports: import os
  import unittest
  from contextlib import contextmanager
  from unittest import mock
  import numpy
  import pytest
  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 6 for calling the FakeHDF5FileHandler2 obj's underlying member method code with example usage: obj._add_data_info_to_file_content(file_content, filename, data_var_prefix, num_grans) without return types