code: def test_dipole_integrals(
      symbols, geometry, charge, core, active, core_ref, int_ref
  ):
      r"""Test that dipole_integrals returns the correct result."""
      mol = qchem.Molecule(symbols, geometry, charge=charge)
      args = [p for p in [geometry] if p.requires_grad]
      constants, integrals = qchem.dipole_integrals(
          mol, core=core, active=active
      )(*args)
  
      for i in range(3):  # loop on x, y, z components
          assert np.allclose(constants[i], core_ref[i])
          assert np.allclose(integrals[i], int_ref[i])
  
file_path: pennylane/tests/qchem/test_dipole.py
imports: import pytest
  import pennylane
  from pennylane import PauliX, PauliY, PauliZ
  from pennylane import numpy
  from pennylane import qchem
  from pennylane.fermi import from_string
  from pennylane.operation import disable_new_opmath, enable_new_opmath
label_desc: Use image node_id 1 for calling a global function with example usage: test_dipole_integrals(symbols, geometry, charge, core, active, core_ref, int_ref) without return types