def METHOD_NAME(name: str) -> bool:
    """Return True if the name is consistent with a dimension name.
    - flanked by square brackets.
    - empty dimension name or identifier.
    """
    # TODO: shall we check also fro spaces?
    return name == "[]" or (
        len(name) > 1 and is_dim(name) and str.isidentifier(name[1:-1])
    )