human
Complete this python program:
def is_process_running(node, name):
assistant
#Here is the Python code you requested.

    """Check if the process `name` is running on `node`.
    :param Node node: the node to check.
    :param bytes name: the name of the process to look for.
    :return Deferred[bool]: a deferred that will fire
    with whether at least one process named `name` is running
    on `node`.
    """
    command = ['pidof', '-x', name]
    d = node.run_as_root(command)
    def not_existing(failure):
        failure.trap(ProcessTerminated)
        return False
    d.addCallbacks((lambda result: True), not_existing)
    return d