code: def _map(elements, mapping):
      for idx, elem in enumerate(elements):
          elements[idx] = mapping[elem]
  
      return elements
  
file_path: spotlight/spotlight/datasets/amazon.py
imports: import h5py
  import numpy
  from spotlight.datasets import _transport
  from spotlight.interactions import Interactions
label_desc: Use image node_id 4 for calling a global function with example usage: _map(elements, mapping) and returns: elements