human
Complete the below
def get_node_cpu_times(reactor, runner, node, known_name, processes):

    ''''Get the CPU times for processes running on a node.
    :param reactor: Twisted Reactor.
    :param runner: A method of running a command on a node.
    :param node: A node to run the command on.
    :param known_name: The name of a process which is known to be running on
    the node.
    :param processes: An iterator of process names to monitor. The process
    names must not contain spaces.
    :return: Deferred firing with a dictionary mapping process names to
    elapsed cpu time.  Process names may be truncated in the dictionary.
    If an error occurs, returns None (after logging error).'
    '''

=====
Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    process_list = list(processes)
    if (known_name in processes):
        delete_known_name = False
    else:
        process_list.append(known_name)
        delete_known_name = True
    parser = CPUParser(reactor)
    d = runner.run(node, (_GET_CPUTIME_COMMAND + [','.join(process_list)]), handle_stdout=parser.lineReceived)
    def get_parser_result(ignored):
        result = parser.result
        if (delete_known_name and (known_name in result)):
            del result[known_name]
        return result
    d.addCallback(get_parser_result)
    return d