from typing import Tuple
import ast


def _h5attr2tuple(attr: str) -> Tuple[str, ...]:
    """Convert an HDF5 attribute to a list of strings"""
    if not attr or attr == "tuple()":
        return tuple()
    return ast.literal_eval(attr)