def METHOD_NAME(self, itemLocs, hide):
    # hide some items like in dessy's
    if hide == True:
        for itemLoc in itemLocs:
            item = itemLoc.Item
            loc = itemLoc.Location
            if (item.Category != "Nothing"
                and loc.CanHidden == True
                and loc.Visibility == 'Visible'):
                if bool(random.getrandbits(1)) == True:
                    loc.Visibility = 'Hidden'
    # put nothing in unfilled locations
    filledLocNames = [il.Location.Name for il in itemLocs]
    unfilledLocs = [loc for loc in Logic.locations() if loc.Name not in filledLocNames]
    nothing = ItemManager.getItem('Nothing')
    for loc in unfilledLocs:
        loc.restricted = True
        itemLocs.append(ItemLocation(nothing, loc, False))