code: def test_convert_format_not_supported(
      terms_ref, lib_name, monkeypatch
  ):
      """Test if an ImportError is raised when openfermion is requested but not installed"""
  
      qOp = openfermion.QubitOperator()
      if terms_ref is not None:
          monkeypatch.setattr(qOp, "terms", terms_ref)
  
      with pytest.raises(
          TypeError, match="Converter does not exist for"
      ):
          qml.qchem.convert.import_operator(qOp, format=lib_name)
  
imports: import os
  import sys
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.operation import disable_new_opmath, enable_new_opmath
label_desc: Use image node_id 6 for calling a global function with example usage: test_convert_format_not_supported(terms_ref, lib_name, monkeypatch) without return types