code: def _jordan_wigner_dispatch(fermi_operator, ps, wire_map, tol):
      """Dispatches to appropriate function if fermi_operator is a FermiWord or FermiSentence."""
      raise ValueError(
          f"fermi_operator must be a FermiWord or FermiSentence, got: {fermi_operator}"
      )
  
file_path: pennylane/pennylane/fermi/conversion.py
imports: from functools import singledispatch
  from typing import Union
  import pennylane
  from pennylane.operation import Operator
  from pennylane.pauli import PauliSentence, PauliWord
  from .fermionic import FermiSentence, FermiWord
label_desc: Use image node_id 2 for calling a global function with example usage: _jordan_wigner_dispatch(fermi_operator, ps, wire_map, tol) without return types