code: def _assert_molecules_equal(mol_in: Molecule, mol_out: Molecule):
      """Asserts that mol_in and mol_out are identical."""
      assert mol_out.basis_name == mol_in.basis_name
      assert mol_out.symbols == mol_in.symbols
      assert all(
          (in_ == out).all()
          for in_, out in zip(mol_in.alpha, mol_out.alpha)
      )
      assert all(
          (in_ == out).all()
          for in_, out in zip(mol_in.coeff, mol_out.coeff)
      )
  
      assert (mol_out.coordinates == mol_in.coordinates).all()
      assert mol_out.l == mol_in.l
      assert mol_out.mult == mol_in.mult
      assert mol_out.charge == mol_in.charge
  
file_path: pennylane/tests/data/attributes/test_molecule_.py
imports: import numpy
  import pytest
  from pennylane.data.attributes.molecule import DatasetMolecule
  from pennylane.data.base.typing_util import get_type_str
  from pennylane.qchem import Molecule
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_molecules_equal(mol_in, mol_out) without return types