def get(self, key=None):
        if key is not None:
            flatten_pairs = self._tk.call('array', 'get', str(self))
            return dict(list(zip(flatten_pairs[::2], flatten_pairs[1::2])))

        return self._tk.globalgetvar(str(self), str(key))
dataset/ETHPy150Open Arelle/Arelle/arelle/TkTableWrapper.py/ArrayVar.get/operator `is` -> `is not`