def make_shape_str(expected_shape) -> str:
    """Converts the given description of a shape (where each element
    corresponds to a description of a single dimension) into its
    human-readable counterpart.

    Args:
        expected_shape (tuple[any]): the expected shape of the thing

    Returns:
        str: a pretty description of the expected shape
    """
    result = []
    for item in expected_shape:
        if item is None:
            result.append('any')
        elif isinstance(item, int):
            result.append(str(item))
        elif isinstance(item, str):
            result.append(f'{item}=any')
        else:
            name, amt = item
            if amt is None:
                result.append(f'{name}=any')
            else:
                result.append(f'{name}={amt}')
    return '(' + ', '.join(result) + ')'