code: def test_no_deformation(self):
      # testing the 'proportion_to_augment' parameter
      rand_deformation_layer = RandomElasticDeformationLayer(
          num_controlpoints=4,
          std_deformation_sigma=15,
          proportion_to_augment=0.0,
      )
      for _ in range(100):
          x, interp_orders = self.get_5d_input()
          x_old = np.copy(x["testdata"])
          rand_deformation_layer.randomise(x)
          out = rand_deformation_layer(x, interp_orders)
  
          with self.cached_session():
              self.assertTrue(np.array_equal(out["testdata"], x_old))
  
file_path: NiftyNet/tests/rand_elastic_deformation_test.py
imports: from __future__ import absolute_import, print_function
  import unittest
  import numpy
  import tensorflow
  from niftynet.layer.rand_elastic_deform import RandomElasticDeformationLayer
  from niftynet.layer.rand_elastic_deform import sitk
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 6 for calling the RandDeformationTests obj's underlying member method code with example usage: obj.test_no_deformation() without return types