code: def test_default(self):
      my_module, flag = optional_import("not_a_module")
      self.assertFalse(flag)
      with self.assertRaises(OptionalImportError):
          my_module.test
  
      my_module, flag = optional_import("torch.randint")
      with self.assertRaises(OptionalImportError):
          self.assertFalse(flag)
          print(my_module.test)
  
file_path: MONAI/tests/test_optional_import.py
imports: from __future__ import annotations
  import unittest
  from monai.utils import OptionalImportError, exact_version, optional_import
label_desc: Use image node_id 1 for calling the TestOptionalImport obj's underlying member method code with example usage: obj.test_default() without return types