def METHOD_NAME(elem: object) -> Dataset:
    """Check that `elem` is a :class:`~pydicom.dataset.Dataset` instance."""
    if not isinstance(elem, Dataset):
        raise TypeError("Sequence contents must be Dataset instances.")
    return elem