class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
docstr: Mimic reader input file content.
docstr_tok: ["Mimic","reader","input","file","content","."]
code: def get_test_content(self, filename, filename_info, filetype_info):
      """Mimic reader input file content."""
      global_attrs = {
          "/attr/NOMCenterLat": np.array(0.0),
          "/attr/NOMCenterLon": np.array(104.7),
          "/attr/NOMSatHeight": np.array(42164140.0),
          "/attr/dEA": np.array(6378.14),
          "/attr/dObRecFlat": np.array(298.257223563),
          "/attr/OBIType": "REGC",
          "/attr/RegLength": np.array(2.0),
          "/attr/RegWidth": np.array(5.0),
          "/attr/Begin Line Number": np.array(0),
          "/attr/End Line Number": np.array(1),
          "/attr/Begin Pixel Number": np.array(0),
          "/attr/End Pixel Number": np.array(1),
          "/attr/Observing Beginning Date": "2019-06-03",
          "/attr/Observing Beginning Time": "00:30:01.807",
          "/attr/Observing Ending Date": "2019-06-03",
          "/attr/Observing Ending Time": "00:34:07.572",
          "/attr/Satellite Name": "FY4A",
          "/attr/Sensor Identification Code": "AGRI",
          "/attr/Sensor Name": "AGRI",
      }
  
      data = {}
      if self.filetype_info["file_type"] == "agri_l1_0500m":
          data = self._get_500m_data("500")
      elif self.filetype_info["file_type"] == "agri_l1_1000m":
          data = self._get_1km_data("1000")
      elif self.filetype_info["file_type"] == "agri_l1_2000m":
          data = self._get_2km_data("2000")
          global_attrs["/attr/Observing Beginning Time"] = "00:30:01"
          global_attrs["/attr/Observing Ending Time"] = "00:34:07"
      elif self.filetype_info["file_type"] == "agri_l1_4000m":
          data = self._get_4km_data("4000")
      elif self.filetype_info["file_type"] == "agri_l1_4000m_geo":
          data = self._get_geo_data("4000")
  
      test_content = {}
      test_content.update(global_attrs)
      test_content.update(data)
  
      return test_content
  
imports: import os
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 9 for calling the FakeHDF5FileHandler2 obj's underlying member method code with example usage: obj.get_test_content(filename, filename_info, filetype_info) and returns: test_content