code: def edge_same_ring(mol):
      rings = mol.GetRingInfo()
      bonds = mol.GetBonds()
      # print(f"bonds are {bonds}")
      same_ring_list = []
      for bond in bonds:
          same_ring = False
          bond_idx = bond.GetIdx()
          # print(f"bond_idx are {bond_idx}")
          for r in rings.BondRings():
              if bond_idx in r:
                  same_ring = True
                  break
          same_ring_list.append(same_ring)
      return same_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 18 for calling a global function with example usage: edge_same_ring(mol) and returns: same_ring_list