docstr: Test the limits of the method.
docstr_tok: ["Test","the","limits","of","the","method","."]
code: def test_MethodLimits(self):
      """Test the limits of the method."""
      irs = IntensityRangeStandardization()
      irs.train(TestIntensityRangeStandardization.good_trainingset)
      self.assertRaises(
          InformationLossException,
          irs.transform,
          image=TestIntensityRangeStandardization.bad_image,
      )
  
      irs = IntensityRangeStandardization()
      irs.train(TestIntensityRangeStandardization.good_trainingset)
      self.assertRaises(
          SingleIntensityAccumulationError,
          irs.transform,
          image=TestIntensityRangeStandardization.uniform_image,
      )
  
      irs = IntensityRangeStandardization()
      irs.train(TestIntensityRangeStandardization.good_trainingset)
      self.assertRaises(
          SingleIntensityAccumulationError,
          irs.transform,
          image=TestIntensityRangeStandardization.single_intensity_image,
      )
  
      irs = IntensityRangeStandardization()
      self.assertRaises(
          SingleIntensityAccumulationError,
          irs.train,
          images=[TestIntensityRangeStandardization.uniform_image] * 10,
      )
  
      irs = IntensityRangeStandardization()
      self.assertRaises(
          SingleIntensityAccumulationError,
          irs.train,
          images=[
              TestIntensityRangeStandardization.single_intensity_image
          ]
          * 10,
      )
  
file_path: medpy/tests/filter_/IntensityRangeStandardization.py
imports: import unittest
  import tempfile
  import pickle
  import numpy
  from medpy.filter import IntensityRangeStandardization, UntrainedException, InformationLossException, SingleIntensityAccumulationError
label_desc: Use image node_id 4 for calling the TestIntensityRangeStandardization obj's underlying member method code with example usage: obj.test_MethodLimits() without return types