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."""
      dt_s = filename_info.get(
          "start_time", datetime(2016, 1, 1, 12, 0, 0)
      )
      dt_e = filename_info.get(
          "end_time", datetime(2016, 1, 1, 12, 0, 0)
      )
  
      if filetype_info["file_type"] == "tropomi_l2":
          file_content = {
              "/attr/time_coverage_start": (
                  dt_s + timedelta(minutes=22)
              ).strftime("%Y-%m-%dT%H:%M:%SZ"),
              "/attr/time_coverage_end": (
                  dt_e - timedelta(minutes=22)
              ).strftime("%Y-%m-%dT%H:%M:%SZ"),
              "/attr/platform_shortname": "S5P",
              "/attr/sensor": "TROPOMI",
          }
  
          file_content["PRODUCT/latitude"] = DEFAULT_FILE_DATA
          file_content["PRODUCT/longitude"] = DEFAULT_FILE_DATA
          file_content[
              "PRODUCT/SUPPORT_DATA/GEOLOCATIONS/latitude_bounds"
          ] = DEFAULT_BOUND_DATA
          file_content[
              "PRODUCT/SUPPORT_DATA/GEOLOCATIONS/longitude_bounds"
          ] = DEFAULT_BOUND_DATA
  
          if "NO2" in filename:
              file_content[
                  "PRODUCT/nitrogen_dioxide_total_column"
              ] = DEFAULT_FILE_DATA
          if "SO2" in filename:
              file_content[
                  "PRODUCT/sulfurdioxide_total_vertical_column"
              ] = DEFAULT_FILE_DATA
  
          for k in list(file_content.keys()):
              if not k.startswith("PRODUCT"):
                  continue
              file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
  
          self._convert_data_content_to_dataarrays(file_content)
          file_content["PRODUCT/latitude"].attrs["_FillValue"] = -999.0
          file_content["PRODUCT/longitude"].attrs["_FillValue"] = -999.0
          file_content[
              "PRODUCT/SUPPORT_DATA/GEOLOCATIONS/latitude_bounds"
          ].attrs["_FillValue"] = -999.0
          file_content[
              "PRODUCT/SUPPORT_DATA/GEOLOCATIONS/longitude_bounds"
          ].attrs["_FillValue"] = -999.0
          if "NO2" in filename:
              file_content[
                  "PRODUCT/nitrogen_dioxide_total_column"
              ].attrs["_FillValue"] = -999.0
          if "SO2" in filename:
              file_content[
                  "PRODUCT/sulfurdioxide_total_vertical_column"
              ].attrs["_FillValue"] = -999.0
  
      else:
          raise NotImplementedError(
              "Test data for file types other than "
              "'tropomi_l2' are not supported."
          )
  
      return file_content
  
file_path: satpy/satpy/tests/reader_tests/test_tropomi_l2.py
imports: import os
  import unittest
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 1 for calling the FakeNetCDF4FileHandlerTL2 obj's underlying member method code with example usage: obj.get_test_content(filename, filename_info, filetype_info) and returns: file_content