def __init__(self, text, function, args=None, kwargs=None, menu=None, should_exit=False):
        """
        :ivar function: The function to be called
        :ivar list args: An optional list of arguments to be passed to the function
        :ivar dict kwargs: An optional dictionary of keyword arguments to be passed to the function
        :ivar return_value: the value returned by the function, None if it hasn't been called yet.
        """
        super(FunctionItem, self).__init__(text=text, menu=menu, should_exit=should_exit)

        self.function = function

        if args is not None:
            self.args = args
        else:
            self.args = []
        if kwargs != None:
            self.kwargs = kwargs
        else:
            self.kwargs = {}

        self.return_value = None
dataset/ETHPy150Open pmbarrett314/curses-menu/cursesmenu/items/function_item.py/FunctionItem.__init__/operator `is not` -> `!=`