def add(self, function):
        """ Add the Python function to the list of monitored functions.

        Parameters
        ----------
        function : object
            A function or method object to add to the list of monitored
            functions. If the function is already included then the method
            exits silently.

        Notes
        -----
        Code adapted from the line_profiler package.

        """
        try:
            code = function.func_code
        except AttributeError:
            if inspect.isbuiltin(function):
                msg = "Built-in functions are not supported for: {0}"
            else:
                msg = "Could not extract a code object for: {0}"
            warnings.warn(msg.format(function))
        else:
            if self._code_map not in code:
                self._code_map[code] = {}
                self.functions.append(function)
dataset/ETHPy150Open enthought/pikos/pikos/_internal/function_set.py/FunctionSet.add/swapped operands of `not in`