def METHOD_NAME() -> int:
    """
    Obtain the organization id from the auth that is logged in.
    Returns
    -------
    int
        Organization id
    """
    if g.user:
        return g.user.organization.id
    elif g.node:
        return g.node.organization.id
    else:
        return g.container["organization_id"]