code: def atom_to_feature_vector(atom):
      """
      Converts rdkit atom object to feature list of indices
      :param mol: rdkit atom object
      :return: list
      """
      atom_feature = [
          safe_index(
              allowable_features["possible_atomic_num_list"],
              atom.GetAtomicNum(),
          ),
          safe_index(
              allowable_features["possible_chirality_list"],
              str(atom.GetChiralTag()),
          ),
          safe_index(
              allowable_features["possible_degree_list"],
              atom.GetTotalDegree(),
          ),
          safe_index(
              allowable_features["possible_formal_charge_list"],
              atom.GetFormalCharge(),
          ),
          safe_index(
              allowable_features["possible_numH_list"],
              atom.GetTotalNumHs(),
          ),
          safe_index(
              allowable_features["possible_number_radical_e_list"],
              atom.GetNumRadicalElectrons(),
          ),
          safe_index(
              allowable_features["possible_hybridization_list"],
              str(atom.GetHybridization()),
          ),
          allowable_features["possible_is_aromatic_list"].index(
              atom.GetIsAromatic()
          ),
          allowable_features["possible_is_in_ring_list"].index(
              atom.IsInRing()
          ),
      ]
      return atom_feature
  
label_desc: Use image node_id 2 for calling a global function with example usage: atom_to_feature_vector(atom) and returns: atom_feature