def METHOD_NAME(cls, pid):
    handle = win32api.OpenProcess(
        win32con.PROCESS_QUERY_INFORMATION | win32con.PROCESS_VM_READ, False, pid
    )
    if not handle:
        return None
    return cls(handle)