code: def get_mask_voxels(shape=(1, 128, 128, 128, 1), dtype=np.float32):
      """Generates a mask for a voxel grid by removing the borders."""
      voxels = np.ones(shape, dtype=dtype)
      voxels[:, [0, -1], :, :, :] = 0
      voxels[:, :, [0, -1], :, :] = 0
      voxels[:, :, :, [0, -1], :] = 0
      return tf.convert_to_tensor(voxels)
  
imports: import numpy
  import tensorflow
  from tensorflow_graphics.math.interpolation import trilinear
  import tensorflow_graphics.projects.radiance_fields.utils
label_desc: Use image node_id 1 for calling a global function with example usage: get_mask_voxels(shape, dtype) and returns: tf