code: def test_atom_features(example_smiles_n_features):
      """
      Test for atom_features() function
      """
      for smiles in example_smiles_n_features.keys():
          m = Chem.MolFromSmiles(smiles)
          f = []
          for atom in m.GetAtoms():
              features = atom_features(atom)
              f.append(features)
          k = np.array(f)
          req_f = np.array(example_smiles_n_features[smiles])
          assert k.shape == req_f.shape
          assert f == example_smiles_n_features[smiles]
  
file_path: deepchem/deepchem/feat/tests/test_atom_feature_generator_dmpnn.py
imports: from deepchem.feat.molecule_featurizers.dmpnn_featurizer import get_atomic_num_one_hot, get_atom_chiral_tag_one_hot, get_atom_mass, atom_features, GraphConvConstants
  from rdkit import Chem
  import pytest
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_atom_features(example_smiles_n_features) without return types