def METHOD_NAME(obj):
    """Try and obtain hierarchy and level info from an object.
    If no level info is available, return ``None, None``."""
    try:
        return getattr(obj.topological, "__level_info__")
    except AttributeError:
        return None, None