def _namify_arguments(mapping):
    """
    Ensure that a mapping of names to parameters has the parameters set to the
    correct name.
    """
    result = []
    for name, parameter in mapping.iteritems():
        parameter.name = name
        result.append(parameter)
    return result