code: def test_augmentation(self):
      rand_bias_field_layer = RandomBiasFieldLayer()
      x, interp_orders = self.get_5d_input()
      x_old = np.copy(x["image"])
      for _ in range(10):
          x["image"] = np.copy(x_old)
  
          rand_bias_field_layer.randomise()
          out = rand_bias_field_layer(x, interp_orders)
          out = np.copy(out["image"])
  
          rand_bias_field_layer.init_order(2)
          rand_bias_field_layer.init_uniform_coeff((-5.0, 5.0))
  
          rand_bias_field_layer.randomise()
          x["image"] = np.copy(x_old)
          out2 = rand_bias_field_layer(x, interp_orders)
  
          self.assertFalse(np.array_equal(out, x_old))
          self.assertFalse(np.array_equal(out2["image"], x_old))
          self.assertFalse(np.array_equal(out, out2["image"]))
  
file_path: NiftyNet/tests/rand_bias_field_test.py
imports: from __future__ import absolute_import, print_function
  import numpy
  import tensorflow
  from niftynet.layer.rand_bias_field import RandomBiasFieldLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 5 for calling the RandDeformationTests obj's underlying member method code with example usage: obj.test_augmentation() without return types