code: def test_failed(self):
      with ImportOptional("PacK") as import_optional:
          pass
  
      assert not import_optional.failed
  
      with ImportOptional("PacK") as import_optional:
          raise ImportError
  
      assert import_optional.failed
  
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 4 for calling the TestImportOptional obj's underlying member method code with example usage: obj.test_failed() without return types