code: def test_fermionic_observable(
      core_constant, integral_one, integral_two, f_ref
  ):
      r"""Test that fermionic_observable returns the correct fermionic observable."""
      f = qchem.fermionic_observable(
          core_constant, integral_one, integral_two
      )
  
      assert np.allclose(list(f.values()), list(f_ref.values()))
      assert f.keys() == f_ref.keys()
  
file_path: pennylane/tests/qchem/test_observable_hf.py
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.pauli import pauli_sentence
  from pennylane.operation import enable_new_opmath, disable_new_opmath
  from pennylane.fermi import from_string
label_desc: Use image node_id 1 for calling a global function with example usage: test_fermionic_observable(core_constant, integral_one, integral_two, f_ref) without return types