class_docstr: Swap in HDF4 file handler.
class_docstr_tok: ["Swap","in","HDF4","file","handler","."]
docstr: Mimic reader input file content.
docstr_tok: ["Mimic","reader","input","file","content","."]
code: def get_test_content(self, filename, filename_info, filename_type):
      """Mimic reader input file content."""
      file_content = {}
      file_content["/attr/Nadir_Pixel_Size"] = 3000.0
      file_content[
          "/attr/Beginning_Acquisition_Date"
      ] = "2004-12-29T12:15:00Z"
      file_content[
          "/attr/End_Acquisition_Date"
      ] = "2004-12-29T12:27:44Z"
      file_content["/attr/Geolocation"] = (
          "1.3642337E7",
          "1856.0",
          "1.3642337E7",
          "1856.0",
      )
      file_content["/attr/Altitude"] = "42164.0"
      file_content["/attr/Geographic_Projection"] = "geos"
      file_content["/attr/Projection_Longitude"] = "0.0"
      file_content["/attr/Sub_Satellite_Longitude"] = "3.4"
      file_content["/attr/Sensors"] = "MSG1/SEVIRI"
      file_content["/attr/Zone"] = "G"
      file_content["/attr/_FillValue"] = 1
      file_content["/attr/scale_factor"] = 1.0
      file_content["/attr/add_offset"] = 0.0
  
      # test one IR and one VIS channel
      file_content["Normalized_Radiance"] = DEFAULT_FILE_DATA
      file_content["Normalized_Radiance/attr/_FillValue"] = 1
      file_content["Normalized_Radiance/attr/scale_factor"] = 1.0
      file_content["Normalized_Radiance/attr/add_offset"] = 0.0
      file_content["Normalized_Radiance/shape"] = DEFAULT_FILE_SHAPE
  
      file_content["Brightness_Temperature"] = DEFAULT_FILE_DATA
      file_content["Brightness_Temperature/attr/_FillValue"] = 1
      file_content["Brightness_Temperature/attr/scale_factor"] = 1.0
      file_content["Brightness_Temperature/attr/add_offset"] = 0.0
      file_content["Brightness_Temperature/shape"] = DEFAULT_FILE_SHAPE
  
      # convert to xarrays
      from xarray import DataArray
  
      for key, val in file_content.items():
          if isinstance(val, np.ndarray):
              attrs = {}
              for a in ["_FillValue", "scale_factor", "add_offset"]:
                  if key + "/attr/" + a in file_content:
                      attrs[a] = file_content[key + "/attr/" + a]
              file_content[key] = DataArray(
                  da.from_array(val), dims=("x", "y"), attrs=attrs
              )
      return file_content
  
imports: import os
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from satpy.readers import load_reader
  from satpy.tests.reader_tests.test_hdf4_utils import FakeHDF4FileHandler
label_desc: Use image node_id 1 for calling the FakeHDF4FileHandler2 obj's underlying member method code with example usage: obj.get_test_content(filename, filename_info, filename_type) and returns: file_content