def has_tag(ds, tag):
    """
    Returns whether or not the specified tag is present in the specified
    dataset.

    :param ds: The dataset to search.
    :param tag: The tag to search for.
    :return: Whether or not a DICOM tag is present.
    """
    return tag.value in ds