docstr: integers should be handled by converting them to floats first.
docstr_tok: ["integers","should","be","handled","by","converting","them","to","floats","first","."]
code: def test_int(self):
      """integers should be handled by converting them to floats first."""
      for p in TEST_NDARRAYS:
          scaler = ScaleIntensity(minv=1.0, maxv=2.0)
          result = scaler(p(self.imt.astype(int)))
          _imt = self.imt.astype(int).astype(np.float32)
          mina = _imt.min()
          maxa = _imt.max()
          norm = (_imt - mina) / (maxa - mina)
          expected = p((norm * (2.0 - 1.0)) + 1.0)
          assert_allclose(
              result, expected, type_test="tensor", rtol=1e-7, atol=0
          )
  
file_path: MONAI/tests/test_scale_intensity.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import ScaleIntensity
  from monai.transforms.utils import rescale_array
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 4 for calling the TestScaleIntensity obj's underlying member method code with example usage: obj.test_int() without return types