code: def occupancy_sparse_to_dense(occ_idx, grid_shape):
      dense = np.zeros(grid_shape, dtype=bool).ravel()
      occ_idx_f = (
          occ_idx[:, 0] * grid_shape[1] * grid_shape[2]
          + occ_idx[:, 1] * grid_shape[2]
          + occ_idx[:, 2]
      )
      dense[occ_idx_f] = True
      dense = np.reshape(dense, grid_shape)
      return dense
  
imports: import os
  import numpy
  from skimage import measure
  import tensorflow.compat.v1
  from tensorflow_graphics.projects.local_implicit_grid.core import evaluator
  from tensorflow_graphics.projects.local_implicit_grid.core import local_implicit_grid_layer
  from tensorflow_graphics.projects.local_implicit_grid.core import point_utils
label_desc: Use image node_id 1 for calling a global function with example usage: occupancy_sparse_to_dense(occ_idx, grid_shape) and returns: dense