def check_dependencies(self, dependencies):
        if not dependencies:
            return True
        if len(dependencies) == 2 and 'any all'.split() in dependencies[0]:
            anyorall = dependencies[0]
            dependencies = dependencies[1]
        else:
            anyorall = 'all'
        results = self.client.get_results(dependencies,status_only=True)
        if results['status'] != 'ok':
            return False
        
        if anyorall == 'any':
            if not results['completed']:
                return False
        else:
            if results['pending']:
                return False
        
        return True
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/engine/streamkernel.py/Kernel.check_dependencies/swapped operands of `in`