code: def test_electron_integrals(
      symbols, geometry, core, active, e_core, one_ref, two_ref
  ):
      r"""Test that electron_integrals returns the correct values."""
      mol = qchem.Molecule(symbols, geometry)
      args = []
  
      e, one, two = qchem.electron_integrals(
          mol, core=core, active=active
      )(*args)
  
      assert np.allclose(e, e_core)
      assert np.allclose(one, one_ref)
      assert np.allclose(two, two_ref)
  
file_path: pennylane/tests/qchem/test_hamiltonians.py
imports: import pytest
  import pennylane
  from pennylane import Identity, PauliX, PauliY, PauliZ
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.operation import disable_new_opmath, enable_new_opmath
  from pennylane.fermi import from_string
label_desc: Use image node_id 1 for calling a global function with example usage: test_electron_integrals(symbols, geometry, core, active, e_core, one_ref, two_ref) without return types