code: def test_locate(self):
      locator = ComponentLocator(
          excludes=None if has_ignite else ["monai.handlers"]
      )
      # test init mapping table and get the module path of component
      self.assertEqual(
          locator.get_component_module_name("LoadImage"),
          "monai.transforms.io.array",
      )
      self.assertGreater(len(locator._components_table), 0)
      for _, mods in locator._components_table.items():
          for i in mods:
              self.assertGreater(len(mods), 0)
              # ensure we can locate all the items by `name`
              self.assertIsNotNone(
                  locate(i), msg=f"can not locate target: {i}."
              )
  
file_path: MONAI/tests/test_component_locator.py
imports: from __future__ import annotations
  import unittest
  from pydoc import locate
  from monai.bundle import ComponentLocator
  from monai.utils import optional_import
label_desc: Use image node_id 1 for calling the TestComponentLocator obj's underlying member method code with example usage: obj.test_locate() without return types