code: def test_import_exact(self):
      my_module, flag = optional_import("torch", "0", exact_version)
      with self.assertRaisesRegex(OptionalImportError, "exact_version"):
          my_module.nn
      self.assertFalse(flag)
      with self.assertRaisesRegex(OptionalImportError, "exact_version"):
          my_module.randint(1, 2, (1, 2))
  
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 5 for calling the TestOptionalImport obj's underlying member method code with example usage: obj.test_import_exact() without return types