code: def new_ants_transform(precision='float', dimension=3, transform_type='AffineTransform', parameters=None):
      
      libfn = utils.get_lib_fn('newAntsTransform%s%i' % (utils.short_ptype(precision), dimension))
      itk_tx = libfn(precision, dimension, transform_type)
      ants_tx = tio.ANTsTransform(precision=precision, dimension=dimension, 
                                  transform_type=transform_type, pointer=itk_tx)
  
      if parameters is not None:
          ants_tx.set_parameters(parameters)
  
      return ants_tx
docs: Create a new ANTsTransform
  
      ANTsR function: None
  
      Example
      -------
      >>> import ants
      >>> tx = ants.new_ants_transform()