class_docstr: Patch pygac.
class_docstr_tok: ["Patch","pygac","."]
docstr: Patch pygac's calibration.
code: def setUp(self) -> None:
      """Patch pygac's calibration."""
      super().setUp()
  
      # Import things to patch here to make them patchable. Otherwise another function
      # might import it first which would prevent a successful patch.
      from pygac.calibration import (
          Calibrator,
          calibrate_solar,
          calibrate_thermal,
      )
  
      self.Calibrator = Calibrator
      self.calibrate_thermal = calibrate_thermal
      self.calibrate_thermal.side_effect = fake_calibrate_thermal
      self.calibrate_solar = calibrate_solar
      self.calibrate_solar.side_effect = fake_calibrate_solar
  
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 CalibratorPatcher obj's underlying member method code with example usage: obj.setUp() without return types