code: def test_flip(self):
      with tf.Session() as sess:
          image_3d = self.constant_3d_image()
          image_3d_np = sess.run(image_3d)
  
          for flip_axis in [0, 1, 2]:
              image_3d_flip, _ = data_aug_lib.maybe_flip(
                  image_3d, tf.zeros_like(image_3d), flip_axis, 0.0
              )
              image_3d_flip_np = sess.run(image_3d_flip)
              self.assertAllClose(image_3d_flip_np, image_3d_np)
  
          image_3d_flip = image_3d
          for flip_axis in [0, 1, 2]:
              if flip_axis == 0:
                  image_3d_np = image_3d_np[::-1, ...]
              elif flip_axis == 1:
                  image_3d_np = image_3d_np[:, ::-1, :]
              else:
                  image_3d_np = image_3d_np[..., ::-1]
              image_3d_flip, _ = data_aug_lib.maybe_flip(
                  image_3d_flip,
                  tf.zeros_like(image_3d_flip),
                  flip_axis,
                  1.0,
              )
              image_3d_flip_np = sess.run(image_3d_flip)
              self.assertAllClose(image_3d_flip_np, image_3d_np)
  
file_path: mesh/mesh_tensorflow/experimental/data_aug_lib_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import mesh_tensorflow.experimental.data_aug_lib
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the MtfUnetDataAugTest obj's underlying member method code with example usage: obj.test_flip() without return types