code: def test_ensure(self):
      with ImportOptional("PacK") as import_optional:
          pass
  
      import_optional.ensure()
  
      with ImportOptional("PacK", "age") as import_optional:
          raise ImportError
  
      error_message = (
          "The package `PacK` is not installed. "
          r"Install it with `pip install orion\[age\]`."
      )
      with pytest.raises(ImportError, match=error_message):
          import_optional.ensure()
  
file_path: orion/tests/unittests/core/utils/test_module_import.py
imports: import pytest
  from orion.core.utils.module_import import ImportOptional
label_desc: Use image node_id 5 for calling the TestImportOptional obj's underlying member method code with example usage: obj.test_ensure() without return types