new_contents: import os
  import numpy as np
  
  from base import MINCCommand, MINCCommandInputSpec, Info
  from nipype.interfaces.base import (TraitedSpec, File, traits, InputMultiPath,isdefined)
  
  
  
  
  
  
  class ResampleOutput(TraitedSpec):
      out_file = File(exists=True, desc="resampled image")
  
  class ResampleInput(MINCCommandInputSpec):
      # input_file = File(position=0, argstr="%s", exists=True, mandatory=True, desc="image to resample")
      input_file = File(position=0, argstr="%s", mandatory=True, desc="image to resample")
      out_file = File(position=1, argstr="%s", mandatory=True, desc="resampled image")
      model_file = File(position=2, argstr="-like %s", mandatory=True, desc="model image")
      
      # transformation = File(position=4, argstr="-transformation %s", exists=True, mandatory=False, desc="image to resample")
      transformation = File(position=4, argstr="-transformation %s", mandatory=False, desc="image to resample")
      interpolation = traits.Enum('trilinear', 'tricubic', 'nearest_neighbour', 'sinc', argstr="-%s", position=3, desc="interpolation type", mandatory=False,default='trilinear')
      clobber = traits.Bool(position=-2, argstr="-clobber", usedefault=True, default_value=True, desc="Overwrite output file")
      verbose = traits.Bool(position=-1, argstr="-verbose", usedefault=True, default_value=True, desc="Write messages indicating progress")
  
  class ResampleCommand(MINCCommand):
      _cmd = "mincresample"
      _suffix = "_resample"
      input_spec = ResampleInput
      output_spec = ResampleOutput
  
      def _list_outputs(self):
          outputs = self.output_spec().get()
          outputs["out_file"] = self.inputs.out_file
          if not isdefined(self.inputs.out_file):
              outputs["out_file"] = self._gen_fname(self.inputs.input_file, suffix=self._suffix)
          outputs["out_file"] = os.path.abspath(outputs["out_file"])
          return outputs
  
      def _gen_filename(self, name):
          if name == "out_file":
              return self._list_outputs()["out_file"]
          return None
  
  
  
subject: Add inormalize