def METHOD_NAME(ctx):
    print(f'Used nomad is {config.client.url}')
    print(f'Used user is {ctx.obj.user}')
    from nomad.client import Auth
    if ctx.obj.user is None:
        return None
    return Auth(user=ctx.obj.user, password=ctx.obj.password, from_api=ctx.obj.token_via_api)