def __contains__(self, item):
        """ Check it the function set contains the provided code object or
        function.

        """
        if inspect.iscode(item):
            return item in self._code_map
        else:
            return item in self.functions
dataset/ETHPy150Open enthought/pikos/pikos/_internal/function_set.py/FunctionSet.__contains__/original