def _set_keyboard(self, value):
        focus = self.focus
        keyboard = self._keyboard
        keyboards = FocusBehavior._keyboards
        if keyboard:
            self.focus = False    # this'll unbind
            if self._keyboard:  # remove assigned keyboard from dict
                del keyboards[keyboard]
        if value and not keyboards in value:
            keyboards[value] = None
        self._keyboard = value
        self.focus = focus
dataset/ETHPy150Open kivy/kivy/kivy/uix/behaviors/focus.py/FocusBehavior._set_keyboard/swapped operands of `in`