text: # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
  from ..registration import scalartransform
  
  
  def test_scalartransform_inputs():
      input_map = dict(
          args=dict(argstr='%s', ),
          deformation=dict(
              argstr='--deformation %s',
              extensions=None,
          ),
          environ=dict(
              nohash=True,
              usedefault=True,
          ),
          h_field=dict(argstr='--h_field ', ),
          input_image=dict(
              argstr='--input_image %s',
              extensions=None,
          ),
          interpolation=dict(argstr='--interpolation %s', ),
          invert=dict(argstr='--invert ', ),
          output_image=dict(
              argstr='--output_image %s',
              hash_files=False,
          ),
          transformation=dict(
              argstr='--transformation %s',
              hash_files=False,
          ),
      )
      inputs = scalartransform.input_spec()
  
      for key, metadata in list(input_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(inputs.traits()[key], metakey) == value
  def test_scalartransform_outputs():
      output_map = dict(
          output_image=dict(extensions=None, ),
          transformation=dict(extensions=None, ),
      )
      outputs = scalartransform.output_spec()
  
      for key, metadata in list(output_map.items()):
          for metakey, value in list(metadata.items()):
              assert getattr(outputs.traits()[key], metakey) == value
  