code: def test_invalid_instantiation(self):
      self.assertRaises(
          ValueError,
          ScaleIntensityRangePercentilesd,
          keys=["img"],
          lower=-1,
          upper=99,
          b_min=0,
          b_max=255,
      )
      self.assertRaises(
          ValueError,
          ScaleIntensityRangePercentilesd,
          keys=["img"],
          lower=101,
          upper=99,
          b_min=0,
          b_max=255,
      )
      self.assertRaises(
          ValueError,
          ScaleIntensityRangePercentilesd,
          keys=["img"],
          lower=30,
          upper=-2,
          b_min=0,
          b_max=255,
      )
      self.assertRaises(
          ValueError,
          ScaleIntensityRangePercentilesd,
          keys=["img"],
          lower=30,
          upper=1000,
          b_min=0,
          b_max=255,
      )
      with self.assertRaises(ValueError):
          s = ScaleIntensityRangePercentilesd(
              keys=["img"],
              lower=30,
              upper=90,
              b_min=None,
              b_max=20,
              relative=True,
          )
          s(self.imt)
  
file_path: MONAI/tests/test_scale_intensity_range_percentilesd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from monai.transforms.intensity.dictionary import ScaleIntensityRangePercentilesd
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 3 for calling the TestScaleIntensityRangePercentilesd obj's underlying member method code with example usage: obj.test_invalid_instantiation() without return types