code: def test_init(self):
      sampler = LinearInterpolateSampler(
          reader=get_3d_reader(),
          window_sizes=MULTI_MOD_DATA,
          batch_size=1,
          n_interpolations=8,
          queue_length=1,
      )
      with self.cached_session() as sess:
          sampler.set_num_threads(2)
          out = sess.run(sampler.pop_batch_op())
          self.assertAllClose(out["image"].shape, [1, 256, 168, 256, 2])
      sampler.close_all()
  
file_path: NiftyNet/tests/sampler_linear_interpolate_v2_test.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import tensorflow
  from niftynet.engine.sampler_linear_interpolate_v2 import LinearInterpolateSampler
  from niftynet.io.image_reader import ImageReader
  from niftynet.io.image_sets_partitioner import ImageSetsPartitioner
  from niftynet.utilities.util_common import ParserNamespace
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the LinearInterpolateSamplerTest obj's underlying member method code with example usage: obj.test_init() without return types