code: def initialise_sampler(self):
      self.sampler = []
      if self.is_training:
          self.sampler.append(
              [
                  ResizeSampler(
                      reader=reader,
                      csv_reader=None,
                      window_sizes=self.data_param,
                      batch_size=self.net_param.batch_size,
                      windows_per_image=1,
                      shuffle=True,
                      queue_length=self.net_param.queue_length,
                  )
                  for reader in self.readers
              ]
          )
          return
      if self._infer_type in ("encode", "encode-decode"):
          self.sampler.append(
              [
                  ResizeSampler(
                      reader=reader,
                      csv_reader=None,
                      window_sizes=self.data_param,
                      batch_size=self.net_param.batch_size,
                      windows_per_image=1,
                      shuffle=False,
                      queue_length=self.net_param.queue_length,
                  )
                  for reader in self.readers
              ]
          )
          return
      if self._infer_type == "linear_interpolation":
          self.sampler.append(
              [
                  LinearInterpolateSampler(
                      reader=reader,
                      csv_reader=None,
                      window_sizes=self.data_param,
                      batch_size=self.net_param.batch_size,
                      n_interpolations=self.autoencoder_param.n_interpolations,
                      queue_length=self.net_param.queue_length,
                  )
                  for reader in self.readers
              ]
          )
          return
  
imports: import tensorflow
  from niftynet.application.base_application import BaseApplication
  from niftynet.engine.application_factory import ApplicationNetFactory
  from niftynet.engine.application_factory import OptimiserFactory
  from niftynet.engine.application_variables import CONSOLE
  from niftynet.engine.application_variables import NETWORK_OUTPUT
  from niftynet.engine.application_variables import TF_SUMMARIES
  from niftynet.engine.sampler_linear_interpolate_v2 import LinearInterpolateSampler
  from niftynet.contrib.csv_reader.sampler_linear_interpolate_v2_csv import LinearInterpolateSamplerCSV
  from niftynet.engine.sampler_resize_v2 import ResizeSampler
  from niftynet.contrib.csv_reader.sampler_resize_v2_csv import ResizeSamplerCSV
  from niftynet.contrib.csv_reader.csv_reader import CSVReader
  from niftynet.engine.windows_aggregator_identity import WindowAsImageAggregator
  from niftynet.io.image_reader import ImageReader
  from niftynet.layer.loss_autoencoder import LossFunction
  from niftynet.utilities.util_common import look_up_operations
label_desc: Use image node_id 3 for calling the AutoencoderApplication obj's underlying member method code with example usage: obj.initialise_sampler() without return types