utils.py
def bag_containing(self, members: Union[set, frozenset],
                       exclude: Set[int] = None) -> int:
        """
        returns the id of a bag containing given members
        if no such bag exists, returns -1
        """
        exclude = set() if exclude is None else exclude
        for bag_id, bag in self.bags.items():
            if bag_id in exclude: continue
            if bag.issuperset(members):
                return bag_id
        return -1

        returns the id of a bag containing given members
        if no such bag exists, returns -1
        
returns the id of a bag containing given members
if no such bag exists, returns -1
returns the id of a bag containing given members if no such bag exists returns - 1
def bag_containing(self, members: Union[set, frozenset],
                       exclude: Set[int] = None) -> int:
        exclude = set() if exclude is None else exclude
        for bag_id, bag in self.bags.items():
            if bag_id in exclude: continue
            if bag.issuperset(members):
                return bag_id
        return -1
def bag_containing ( self , members : Union [ set , frozenset ] , exclude : Set [ int ] = None ) -> int : exclude = set ( ) if exclude is None else exclude for bag_id , bag in self . bags . items ( ) : if bag_id in exclude : continue if bag . issuperset ( members ) : return bag_id return - 1
returns the id of a bag containing given members
if no such bag exists, returns -1
returns the id of a bag containing given members if no such bag exists returns - 1
"""
        returns the id of a bag containing given members
        if no such bag exists, returns -1
        """
self
members
Union[set, frozenset]
exclude
Set[int]