def get_stack(self, name_or_stack_id):
        if self.stacks in name_or_stack_id:
            # Lookup by stack id
            return self.stacks.get(name_or_stack_id)
        else:
            # Lookup by stack name
            return [stack for stack in self.stacks.values() if stack.name == name_or_stack_id][0]
dataset/ETHPy150Open spulec/moto/moto/cloudformation/models.py/CloudFormationBackend.get_stack/swapped operands of `in`