def is_from_root(indices):
    """Test a string index is from the root"""
    # Mainly here for self documentation purposes
    if hasattr(indices, "from_root"):
        return indices.from_root
    return indices.startswith(".")