class_docstr: Swap-in NetCDF4 File Handler.
class_docstr_tok: ["Swap-in","NetCDF4","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."""
      file_content = {
          "/attr/time_coverage_start": "2020-10-20T12:00:00.5Z",
          "/attr/time_coverage_end": "2020-10-20T12:00:36Z",
          "/attr/start_orbit_number": 1,
          "/attr/end_orbit_number": 2,
          "/attr/platform_name": "NPP",
          "/attr/instrument_name": "CrIS, ATMS, VIIRS",
      }
      for k, units, standard_name in [
          ("Solar_Zenith", "degrees", "solar_zenith_angle"),
          ("Topography", "meters", ""),
          ("Land_Fraction", "1", ""),
          ("Surface_Pressure", "mb", ""),
          ("Skin_Temperature", "Kelvin", "surface_temperature"),
      ]:
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/units"] = units
          file_content[k + "/attr/valid_range"] = (0.0, 120.0)
          file_content[k + "/attr/_FillValue"] = -9999.0
          if standard_name:
              file_content[k + "/attr/standard_name"] = standard_name
      for k, units, standard_name in [
          ("Temperature", "Kelvin", "air_temperature"),
          ("Effective_Pressure", "mb", ""),
          ("H2O", "1", ""),
          ("H2O_MR", "g/g", ""),
          ("O3", "1", ""),
          ("O3_MR", "1", ""),
          ("Liquid_H2O", "1", ""),
          ("Liquid_H2O_MR", "g/g", "cloud_liquid_water_mixing_ratio"),
          ("CO", "1", ""),
          ("CO_MR", "1", ""),
          ("CH4", "1", ""),
          ("CH4_MR", "1", ""),
          ("CO2", "1", ""),
          ("HNO3", "1", ""),
          ("HNO3_MR", "1", ""),
          ("N2O", "1", ""),
          ("N2O_MR", "1", ""),
          ("SO2", "1", ""),
          ("SO2_MR", "1", ""),
      ]:
          file_content[k] = DEFAULT_PRES_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_PRES_FILE_SHAPE
          file_content[k + "/attr/units"] = units
          file_content[k + "/attr/valid_range"] = (0.0, 120.0)
          file_content[k + "/attr/_FillValue"] = -9999.0
          if standard_name:
              file_content[k + "/attr/standard_name"] = standard_name
      k = "Pressure"
      file_content[k] = ALL_PRESSURE_LEVELS
      file_content[k + "/shape"] = DEFAULT_PRES_FILE_SHAPE
      file_content[k + "/attr/units"] = "mb"
      file_content[k + "/attr/valid_range"] = (0.0, 2000.0)
      file_content[k + "/attr/_FillValue"] = -9999.0
  
      k = "Quality_Flag"
      file_content[k] = DEFAULT_FILE_DATA.astype(np.int32)
      file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
      file_content[k + "/attr/valid_range"] = (0, 31)
      file_content[k + "/attr/_FillValue"] = -9999.0
  
      k = "Longitude"
      file_content[k] = DEFAULT_LON_DATA
      file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
      file_content[k + "/attr/units"] = "degrees_east"
      file_content[k + "/attr/valid_range"] = (-180.0, 180.0)
      file_content[k + "/attr/standard_name"] = "longitude"
      file_content[k + "/attr/_FillValue"] = -9999.0
  
      k = "Latitude"
      file_content[k] = DEFAULT_LAT_DATA
      file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
      file_content[k + "/attr/units"] = "degrees_north"
      file_content[k + "/attr/valid_range"] = (-90.0, 90.0)
      file_content[k + "/attr/standard_name"] = "latitude"
      file_content[k + "/attr/_FillValue"] = -9999.0
  
      attrs = ("_FillValue", "flag_meanings", "flag_values", "units")
      cris_fors_dim_name = "Number_of_CrIS_FORs"
      pressure_levels_dim_name = "Number_of_P_Levels"
      if "_v1" in filename:
          cris_fors_dim_name = "number_of_FORs"
          pressure_levels_dim_name = "number_of_p_levels"
      convert_file_content_to_data_array(
          file_content,
          attrs=attrs,
          dims=("z", cris_fors_dim_name, pressure_levels_dim_name),
      )
      return file_content
  
imports: import datetime
  import os
  import unittest
  from unittest import mock
  import numpy
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
  from satpy.tests.utils import convert_file_content_to_data_array
label_desc: Use image node_id 1 for calling the FakeNetCDF4FileHandler2 obj's underlying member method code with example usage: obj.get_test_content(filename, filename_info, filetype_info) and returns: file_content