<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def new_ants_transform(precision='float', dimension=3, transform_type='AffineTransform', parameters=None):
 """ Create a new ANTsTransform ANTsR function: None Example ------- """

    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