class_docstr: 2D images, axcodes specifications are ignored when
  loading. (Resampling to new pixdims is currently not supported).
class_docstr_tok: ["2D","images",",","axcodes","specifications","are","ignored","when","loading",".","(","Resampling","to","new","pixdims","is","currently","not","supported",")","."]
code: def output_pixdim(self, output_pixdim):
      try:
          if len(output_pixdim) == len(self.file_path):
              self._output_pixdim = []
              for i, _ in enumerate(self.file_path):
                  if output_pixdim[i] is None:
                      self._output_pixdim.append(None)
                  else:
                      self._output_pixdim.append(
                          tuple(
                              float(pixdim)
                              for pixdim in output_pixdim[i]
                          )
                      )
              # self._output_pixdim = tuple(self._output_pixdim)
              return
      except (TypeError, ValueError):
          pass
      try:
          if output_pixdim is not None:
              output_pixdim = tuple(
                  float(pixdim) for pixdim in output_pixdim
              )
          self._output_pixdim = (output_pixdim,) * len(self.file_path)
      except (TypeError, ValueError):
          tf.logging.fatal(
              "could not set output pixdim " "%s for %s",
              output_pixdim,
              self.file_path,
          )
          raise
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from abc import ABCMeta, abstractmethod
  import nibabel
  import numpy
  import tensorflow
  from six import with_metaclass, string_types
  import niftynet.io.misc_io
  from niftynet.io.image_loader import load_image_obj
  from niftynet.io.misc_io import resolve_file_name, dtype_casting
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
label_desc: Use image node_id 13 for calling the SpatialImage2D obj's underlying member method code with example usage: obj.output_pixdim(output_pixdim) without return types