code: def test_error_is_raised_for_incompatible_type():
      """Test that an error is raised in the input is not a FermiWord or FermiSentence"""
  
      with pytest.raises(
          ValueError,
          match="fermi_operator must be a FermiWord or FermiSentence",
      ):
          jordan_wigner(qml.PauliX(0))
  
imports: import pytest
  import pennylane
  from pennylane.ops import SProd, Identity
  from pennylane.pauli.conversion import pauli_sentence
  from pennylane.fermi.conversion import jordan_wigner
  from pennylane.pauli import PauliWord, PauliSentence
  from pennylane.fermi.fermionic import FermiWord, FermiSentence
label_desc: Use image node_id 10 for calling a global function with example usage: test_error_is_raised_for_incompatible_type() without return types