code: def test_operation_conversion(pl_op, of_op, wire_order):
      """Assert the conversion between pennylane and openfermion operators"""
      converted_pl_op = qml.qchem.convert._pennylane_to_openfermion(
          *pl_op
      )  # coeffs, ops lists
      assert of_op == converted_pl_op
  
      converted_of_op = qml.qchem.convert._openfermion_to_pennylane(
          of_op
      )
      _, converted_of_op_terms = converted_of_op
      assert all(
          isinstance(term, pauli_ops_and_tensor)
          for term in converted_of_op_terms
      )
      assert np.allclose(
          qml.matrix(qml.dot(*pl_op), wire_order=wire_order),
          qml.matrix(qml.dot(*converted_of_op), wire_order=wire_order),
      )
  
      # test arithmetic types
      enable_new_opmath()
      converted_of_op = qml.qchem.convert._openfermion_to_pennylane(
          of_op
      )
      disable_new_opmath()
  
      _, converted_of_op_terms = converted_of_op
      assert all(
          isinstance(term, pauli_ops_and_prod)
          for term in converted_of_op_terms
      )
  
      assert np.allclose(
          qml.matrix(qml.dot(*pl_op), wire_order=wire_order),
          qml.matrix(qml.dot(*converted_of_op), wire_order=wire_order),
      )
  
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 5 for calling a global function with example usage: test_operation_conversion(pl_op, of_op, wire_order) without return types