human
I wrote the below code

    def match(p):
        if (p.status() == 'zombie'):
            return False
        if (p.name() == name):
            return True
        try:
            if (p.exe() == name):
                return True
        except Exception:
            pass
        return False
    processes = (p for p in psutil.process_iter() if match(p))
    processes = sorted(processes, key=(lambda p: p.create_time()))
    return list(reversed([p.pid for p in processes]))

What's a good function header?
assistant
#Here's a good function header.

def pid_by_name(name):