code: def test_conv3d(self):
      with tf.Graph().as_default():
          x = 10.0 * tf.random_uniform(shape=(16, 4, 5, 5, 32))
  
          with arg_scope([glow_ops.actnorm], init=True):
              conv3d = glow_ops.conv(
                  "conv3d", x, output_channels=64, apply_actnorm=True
              )
              conv3d_zeros = glow_ops.conv(
                  "conv3d_zeros",
                  x,
                  output_channels=64,
                  apply_actnorm=False,
                  conv_init="zeros",
              )
  
          with tf.Session() as session:
              session.run(tf.global_variables_initializer())
  
              # test if apply_actnorm is set to True, the first minibatch has
              # zero mean and unit variance.
              conv3d_np, conv3d_zeros_np = session.run(
                  [conv3d, conv3d_zeros]
              )
              self.assertEqual(conv3d_np.shape, (16, 4, 5, 5, 64))
              for i in range(4):
                  curr_step = conv3d_np[:, i, :, :, :]
                  mean = np.mean(curr_step, axis=(0, 1, 2))
                  var = np.var(curr_step, axis=(0, 1, 2))
                  self.assertTrue(np.allclose(mean, 0.0, atol=1e-5))
                  self.assertTrue(np.allclose(var, 1.0, atol=1e-5))
  
              # test shape in case apply_actnorm is set to False,
              self.assertTrue(np.allclose(conv3d_zeros_np, 0.0))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  from six.moves import zip
  from tensor2tensor.models.research import glow
  from tensor2tensor.models.research import glow_ops
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import hparam
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 18 for calling the GlowOpsTest obj's underlying member method code with example usage: obj.test_conv3d() without return types