code: def test_factor_scale(self):
      key = "img"
      for p in TEST_NDARRAYS:
          scaler = ScaleIntensityd(
              keys=[key], minv=None, maxv=None, factor=0.1
          )
          result = scaler({key: p(self.imt)})
          expected = (self.imt * (1 + 0.1)).astype(np.float32)
          assert_allclose(result[key], p(expected), type_test="tensor")
  
file_path: MONAI/tests/test_scale_intensityd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms import ScaleIntensityd
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 2 for calling the TestScaleIntensityd obj's underlying member method code with example usage: obj.test_factor_scale() without return types