def discard(self, function):
        """ Remove the Python function form the list of monitored functions.

        Parameters
        ----------
        function : object
            The function or method object to remove from the list of monitored
            functions. If the function does not exist in the list then the
            method exists silently.

        """
        try:
            code = function.func_code
        except AttributeError:
            msg = "Could not extract a code object for the object {0}"
            warnings.warn(msg.format(function))
        else:
            if self._code_map in code:
                self._code_map.pop(code)
                self.functions.remove(function)
dataset/ETHPy150Open enthought/pikos/pikos/_internal/function_set.py/FunctionSet.discard/swapped operands of `in`