def METHOD_NAME() -> db.Authenticatable | dict:
    """
    Read authenticatable object or dict from the flask global context.
    Returns
    -------
    Union[db.Authenticatable, dict]
        Authenticatable object or dict. Authenticatable object is either a
        user or node. Dict is for a container.
    """
    if g.user:
        return g.user
    if g.node:
        return g.node
    if g.container:
        return g.container