code: def test_no_scaling_fixes(self):
      # Check we do not fix slope or intercept
      #
      # We used to fix difficult-to-interpret slope and intercept values in
      # headers that support them.  Now we pass everything and let the
      # `get_slope_inter()` routine reinterpet diffireinterpet difficult
      # values.
      # Analyze doesn't support slope or intercept; the tests are here for
      # children of this class that do support them.
      HC = self.header_class
      if not HC.has_data_slope:
          return
      hdr = HC()
      has_inter = HC.has_data_intercept
      slopes = (1, 0, np.nan, np.inf, -np.inf)
      inters = (0, np.nan, np.inf, -np.inf) if has_inter else (0,)
      for slope, inter in itertools.product(slopes, inters):
          hdr["scl_slope"] = slope
          if has_inter:
              hdr["scl_inter"] = inter
          self.assert_no_log_err(hdr)
  
imports: import itertools
  import logging
  import os
  import pickle
  import re
  from io import BytesIO, StringIO
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..None import imageglobals
  from ..analyze import AnalyzeHeader, AnalyzeImage
  from ..arraywriters import WriterError
  from ..casting import sctypes_aliases
  from ..nifti1 import Nifti1Header
  from ..optpkg import optional_package
  from ..spatialimages import HeaderDataError, HeaderTypeError, supported_np_types
  from ..testing import assert_dt_equal, bytesio_filemap, bytesio_round_trip, data_path, suppress_warnings
  from ..tmpdirs import InTemporaryDirectory
  from .None import test_spatialimages
  from .None import test_wrapstruct
label_desc: Use image node_id 11 for calling the TestAnalyzeHeader obj's underlying member method code with example usage: obj.test_no_scaling_fixes() without return types