code: def tile_cells(tile):
      # we need to collect all the data points for a given set of cell indices
      # and then pass that to the render function
      cells = {}
      for i, gi in enumerate(tile["gi"]):
          ci = tile["ci"][i]
          cj = tile["cj"][i]
          c = cells.get((ci, cj), {"gi": [], "i": ci, "j": cj})
          c["gi"].append(gi)
          cells[(ci, cj)] = c
  
      return cells
  
file_path: lucid/lucid/scratch/atlas_pipeline/grid.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: tile_cells(tile) and returns: cells