class_docstr: Test the filehandler.
docstr: Set up the tests.
code: def setUp(self):
      """Set up the tests."""
      # ipr is not present in the xml format ?
      self.scan_lines = 1080
      self.earth_views = 2048
  
      sections = self._create_structure()
      sections[("mphr", 0)]["TOTAL_MDR"] = (
          b"TOTAL_MDR                     =   "
          + bytes(str(self.scan_lines), encoding="ascii")
          + b"\n"
      )
      sections[("mphr", 0)][
          "SPACECRAFT_ID"
      ] = b"SPACECRAFT_ID                 = M03\n"
      sections[("mphr", 0)][
          "INSTRUMENT_ID"
      ] = b"INSTRUMENT_ID                 = AVHR\n"
      sections[("sphr", 0)]["EARTH_VIEWS_PER_SCANLINE"] = (
          b"EARTH_VIEWS_PER_SCANLINE      =  "
          + bytes(str(self.earth_views), encoding="ascii")
          + b"\n"
      )
      sections[("sphr", 0)][
          "NAV_SAMPLE_RATE"
      ] = b"NAV_SAMPLE_RATE               =  20\n"
  
      _fd, fname = mkstemp()
      fd = open(_fd)
  
      self.filename = fname
      for _, arr in sections.items():
          arr.tofile(fd)
      fd.close()
      self.fh = eps.EPSAVHRRFile(
          self.filename, {"start_time": "now", "end_time": "later"}, {}
      )
  
imports: import os
  from contextlib import suppress
  from tempfile import mkstemp
  from unittest import TestCase, mock
  import numpy
  import pytest
  import xarray
  import satpy
  from satpy._config import get_config_path
  from satpy.readers import eps_l1b
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestEPSL1B obj's underlying member method code with example usage: obj.setUp() without return types