code: def ReorderCanonicalRankAtoms(mol):
      order = tuple(
          zip(
              *sorted(
                  [
                      (j, i)
                      for i, j in enumerate(
                          Chem.CanonicalRankAtoms(mol)
                      )
                  ]
              )
          )
      )[1]
      mol_renum = Chem.RenumberAtoms(mol, order)
      return mol_renum, order
  
imports: from ogb.utils.features import allowable_features, atom_to_feature_vector, bond_to_feature_vector, atom_feature_vector_to_dict, bond_feature_vector_to_dict
  from rdkit import Chem
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: ReorderCanonicalRankAtoms(mol) and returns: mol_renum,  order