class_docstr: Test base class with writing a fake file.
class_docstr_tok: ["Test","base","class","with","writing","a","fake","file","."]
docstr: Set up the test case.
code: def setUp(self) -> None:
      """Set up the test case."""
      test_data = np.ones(NUMBER_OF_SCANS, dtype=dtype)
      # Channel 3a
      test_data["id"]["id"][:5] = 891
      # Channel 3b
      test_data["id"]["id"][5:] = 890
      with NamedTemporaryFile(
          mode="w+", suffix=".hmf", delete=False
      ) as hrpt_file:
          self.filename = hrpt_file.name
          test_data.tofile(hrpt_file)
  
imports: import os
  import unittest
  from contextlib import suppress
  from tempfile import NamedTemporaryFile
  from unittest import mock
  import numpy
  import xarray
  from satpy.readers.hrpt import HRPTFile, dtype
  from satpy.tests.reader_tests.test_avhrr_l1b_gaclac import PygacPatcher
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestHRPTWithFile obj's underlying member method code with example usage: obj.setUp() without return types