code: def _get_indices(i, shape):  # type: ignore
      res = np.empty((len(shape),), dtype=np.int64)
      k = len(shape) - 1
      while k > 0:
          m = i % shape[k]
          res[k] = m
          i -= m
          i /= shape[k]
          k -= 1
      res[0] = i
      return res
  
label_desc: Use image node_id 1 for calling a global function with example usage: _get_indices(i, shape) and returns: res