code: def get_ring_size(mol):
      # smiles = 'CN1CCC23C4C1CC5=C2C(=C(C=C5)O)OC3C(C=C4)O'
      # test smiles that containing atoms included in two rings
      # mol = Chem.MolFromSmiles(smiles)
      # print(mol.get)
      rings = mol.GetRingInfo()
      rings_info = []
      for r in rings.AtomRings():
          rings_info.append(r)
          # print(f"r:{r}")
      # print("rings",rings)
      ring_list = []
      for atom in mol.GetAtoms():
          # atom_ring_list = []
          atom_result = []
          # num_atom_rings = rings.NumAtomRings(atom.GetIdx())
          # print(f"atom index: {atom.GetIdx()}")
          for ringsize in range(3, 9):
              # atom_ring_list.append(rings.IsAtomInRingOfSize(atom.GetIdx(), ringsize))
              num_of_ring_at_ringsize = 0
              for r in rings_info:
                  if len(r) == ringsize and atom.GetIdx() in r:
                      num_of_ring_at_ringsize += 1
              if num_of_ring_at_ringsize > 8:
                  num_of_ring_at_ringsize = 9
              atom_result.append(num_of_ring_at_ringsize)
  
          # print(atom_result)
          ring_list.append(atom_result)
  
      return ring_list
  
imports: import numpy
  import rdkit
  from rdkit import Chem
  from rdkit.Chem import AllChem
  import rdkit.Chem.rdPartialCharges
  from ogb.utils.features import allowable_features, atom_to_feature_vector, atom_feature_vector_to_dict, bond_feature_vector_to_dict
  from local_feature import bond_to_feature_vector, get_bond_feature_dims
  from copy import deepcopy
  import hashlib
label_desc: Use image node_id 13 for calling a global function with example usage: get_ring_size(mol) and returns: ring_list