code: def __init__(self, sparse=False):
      self.sparse = sparse
      self.grids = []
      self.shapes = []
  
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 1 to create a new nd_grid object  with example: obj = nd_grid(sparse)