def is_subdict(X, Y):
    """
        checks whether X is contained by Y, i.e., whether X is a "sub-dictionary" of Y.
        returns bool.
        """
    
    return set(X.items()).issubset(set(Y.items()))