def __init__(self, text, function, args=None, kwargs=None, menu=None, should_exit=False):
        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 is not None:
            self.kwargs = kwargs
        else:
            self.kwargs = {}

        self.return_value = None
:ivar function: The function to be called
dataset/ETHPy150Open pmbarrett314/curses-menu/cursesmenu/items/function_item.py/FunctionItem.__init__