def parse_dat_mantid_function_def(function):
    """
    Helper function that parses the function definition of a NIST problem
    and returns the function name and parameters.

    @param function :: NIST function definition string

    @returns :: formatted function name and the final function
                parameters (after it has been fitted)
    """
    first_comma = function.find(',')
    second_comma = function.find(',', first_comma + 1)
    function_name = function[first_comma + 9:second_comma]
    function_parameters = function[second_comma + 1:]
    function_parameters = function_parameters.replace(',', ', ')

    return [function_name], [function_parameters]