@nox.session(python=False)
def gha_list(session):
    '(mandatory arg: <base_session_name>) Prints all sessions available for <base_session_name>, for GithubActions.'
    if (len(session.posargs) != 1):
        raise ValueError('This session has a mandatory argument: <base_session_name>')
    session_func = globals()[session.posargs[0]]
    try:
        session_func.parametrize
    except AttributeError:
        sessions_list = [('%s-%s' % (session_func.__name__, py)) for py in session_func.python]
    else:
        sessions_list = [('%s-%s(%s)' % (session_func.__name__, py, param)) for (py, param) in product(session_func.python, session_func.parametrize)]
    print(dumps(sessions_list))
(mandatory arg: <base_session_name>) Prints all sessions available for <base_session_name>, for GithubActions.
@nox.session(python=False)
def gha_list(session):
    
    if (len(session.posargs) != 1):
        raise ValueError('This session has a mandatory argument: <base_session_name>')
    session_func = globals()[session.posargs[0]]
    try:
        session_func.parametrize
    except AttributeError:
        sessions_list = [('%s-%s' % (session_func.__name__, py)) for py in session_func.python]
    else:
        sessions_list = [('%s-%s(%s)' % (session_func.__name__, py, param)) for (py, param) in product(session_func.python, session_func.parametrize)]
    print(dumps(sessions_list))