def find_session_runner(session, name, **kwargs):
    for (s, _) in session._runner.manifest.list_all_sessions():
        if (name not in s.signatures):
            continue
        for signature in s.signatures:
            for (key, value) in kwargs.items():
                param = '{}={!r}'.format(key, value)
                if IS_PY3:
                    param = param.replace("u'", "'")
                if (param not in signature):
                    break
            else:
                return s
            continue
    session.error('Could not find a nox session by the name {!r} with the following keyword arguments: {!r}'.format(name, kwargs))
def find_session_runner(session, name, **kwargs):
    for (s, _) in session._runner.manifest.list_all_sessions():
        if (name not in s.signatures):
            continue
        for signature in s.signatures:
            for (key, value) in kwargs.items():
                param = '{}={!r}'.format(key, value)
                if IS_PY3:
                    param = param.replace("u'", "'")
                if (param not in signature):
                    break
            else:
                return s
            continue
    session.error('Could not find a nox session by the name {!r} with the following keyword arguments: {!r}'.format(name, kwargs))