code: def atom_to_id(atom):
      """Return a unique id corresponding to the atom type
  
      Parameters
      ----------
      atom: RDKit.Chem.rdchem.Atom
          Atom to convert to ids.
  
      Returns
      -------
      id: int
          The index in a feature vector given by the given set of features.
      """
      features = get_feature_list(atom)
      return features_to_id(features, intervals)
  
imports: import numpy
  import deepchem
  from deepchem.feat.base_classes import MolecularFeaturizer
  from deepchem.feat.mol_graphs import ConvMol, WeaveMol
  from deepchem.data import DiskDataset
  import logging
  from typing import Optional, List, Tuple, Union, Iterable
  from deepchem.utils.typing import RDKitMol, RDKitAtom
  from deepchem.utils.molecule_feature_utils import one_hot_encode
label_desc: Use image node_id 8 for calling a global function with example usage: atom_to_id(atom) and returns: features_to_id