class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
code: def _make_file(
      self,
      platform_id,
      geolocation_prefix,
      l1b_prefix,
      ECWN,
      Emissive_units,
  ):
      dim_0 = 19
      dim_1 = 20
      test_file = {
          # Satellite data.
          "/attr/Day Or Night Flag": "D",
          "/attr/Observing Beginning Date": "2018-12-25",
          "/attr/Observing Beginning Time": "21:41:47.090",
          "/attr/Observing Ending Date": "2018-12-25",
          "/attr/Observing Ending Time": "21:47:28.254",
          "/attr/Satellite Name": platform_id,
          "/attr/Sensor Identification Code": "VIRR",
          # Emissive data.
          l1b_prefix
          + "EV_Emissive": self.make_test_data([3, dim_0, dim_1]),
          l1b_prefix + "EV_Emissive/attr/valid_range": [0, 50000],
          l1b_prefix
          + "Emissive_Radiance_Scales": self.make_test_data(
              [dim_0, dim_1]
          ),
          l1b_prefix + "EV_Emissive/attr/units": Emissive_units,
          l1b_prefix
          + "Emissive_Radiance_Offsets": self.make_test_data(
              [dim_0, dim_1]
          ),
          "/attr/" + ECWN: [2610.31, 917.6268, 836.2546],
          # Reflectance data.
          l1b_prefix
          + "EV_RefSB": self.make_test_data([7, dim_0, dim_1]),
          l1b_prefix + "EV_RefSB/attr/valid_range": [0, 32767],
          l1b_prefix + "EV_RefSB/attr/units": "none",
          "/attr/RefSB_Cal_Coefficients": np.ones(14, dtype=np.float32)
          * 2,
      }
      for attribute in [
          "Latitude",
          "Longitude",
          geolocation_prefix + "SolarZenith",
          geolocation_prefix + "SensorZenith",
          geolocation_prefix + "SolarAzimuth",
          geolocation_prefix + "SensorAzimuth",
      ]:
          test_file[attribute] = self.make_test_data([dim_0, dim_1])
          test_file[attribute + "/attr/Intercept"] = 0.0
          test_file[attribute + "/attr/units"] = "degrees"
          if "Solar" in attribute or "Sensor" in attribute:
              test_file[attribute + "/attr/Slope"] = 0.01
              if "Azimuth" in attribute:
                  test_file[attribute + "/attr/valid_range"] = [
                      0,
                      18000,
                  ]
              else:
                  test_file[attribute + "/attr/valid_range"] = [
                      -18000,
                      18000,
                  ]
          else:
              test_file[attribute + "/attr/Slope"] = 1.0
              if "Longitude" == attribute:
                  test_file[attribute + "/attr/valid_range"] = [
                      -180.0,
                      180.0,
                  ]
              else:
                  test_file[attribute + "/attr/valid_range"] = [
                      -90.0,
                      90.0,
                  ]
      return test_file
  
imports: import os
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 2 for calling the FakeHDF5FileHandler2 obj's underlying member method code with example usage: obj._make_file(platform_id, geolocation_prefix, l1b_prefix, ECWN, Emissive_units) and returns: test_file