code: def _init_array(self, array, current, total):
      rep = 1
      for i in range(current, total):
          rep *= self.shapes[i]
      return ivy.repeat(array, rep, axis=0)
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import outputs_to_frontend_arrays, to_ivy_arrays_and_back, handle_numpy_dtype
label_desc: Use image node_id 5 for calling the nd_grid obj's underlying member method code with example usage: obj._init_array(array, current, total) and returns: ivy