code: def residual_block_3d(
      x, nfilters, strides=(1, 1, 1), normalization="None"
  ):
      """3D residual block."""
      shortcut = x
  
      x = layers.Conv3D(
          nfilters,
          kernel_size=(3, 3, 3),
          strides=strides,
          padding="same",
          kernel_initializer=initializer,
      )(x)
      x = norm_layer(x, normalization)
      x = layers.LeakyReLU()(x)
  
      x = layers.Conv3D(
          nfilters,
          kernel_size=(3, 3, 3),
          strides=(1, 1, 1),
          padding="same",
          kernel_initializer=initializer,
      )(x)
      x = norm_layer(x, normalization)
  
      if strides != (1, 1, 1):
          shortcut = layers.Conv3D(
              nfilters,
              kernel_size=(1, 1, 1),
              strides=strides,
              padding="same",
          )(shortcut)
          x = norm_layer(x, normalization)
  
      x = layers.add([shortcut, x])
      x = layers.LeakyReLU()(x)
  
      return x
  
file_path: graphics/tensorflow_graphics/projects/neural_voxel_renderer/layers.py
imports: import tensorflow
label_desc: Use image node_id 8 for calling a global function with example usage: residual_block_3d(x, nfilters, strides, normalization) and returns: x