code: def shard_generator():
      for ind, pdb_code in enumerate(ids):
          i = df_ids.index(pdb_code)
          y = df_years[i]
          X = np.zeros((1, 5))
          w = np.ones((1, 1))
          yield X, y, w, pdb_code
  
imports: import os
  import numpy
  import deepchem
  import pandas
  from rdkit import Chem
label_desc: Use image node_id 2 for calling a global function with example usage: shard_generator() without return types