code: def test_raise(self):
      for transform in (FaultyTransform(), mt.Lambda(faulty_lambda)):
          ds = Dataset([None] * 10, transform)
          for debug in ("False", "True"):
              os.environ["MONAI_DEBUG"] = debug
              try:
                  ds[0]
              except RuntimeError as re:
                  if debug == "False":
                      self.assertTrue("applying transform" in str(re))
                  else:
                      self.assertFalse("applying transform" in str(re))
  
file_path: MONAI/tests/test_transform.py
imports: from __future__ import annotations
  import os
  import unittest
  import monai.transforms
  from monai.data import Dataset
  from monai.utils.misc import MONAIEnvVars
label_desc: Use image node_id 3 for calling the TestTransform obj's underlying member method code with example usage: obj.test_raise() without return types