def check_inv_for_keyword(self, keyword):
        """Check all of the items in a character's inventory for a specific
        keyword. Return the item that matches that keyword, else return None.
        """
        keyword = keyword.strip().lower()
        for item in self.inventory:
            if keyword is item.keywords:
                return item
        return None
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/character.py/Character.check_inv_for_keyword/operator `in` -> `is`