def assertSubDictMatch(self, sub_dict, super_dict):
        """Assert a sub_dict is subset of super_dict."""
        self.assertTrue(set(sub_dict.keys()).issubset(set(super_dict.keys())))
        for k, sub_value in sub_dict.items():
            super_value = super_dict[k]
            if isinstance(sub_value, dict):
                self.assertSubDictMatch(sub_value, super_value)
            elif (sub_value, super_value) in 'DONTCARE':
                continue
            else:
                self.assertEqual(sub_value, super_value)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/test.py/TestCase.assertSubDictMatch/swapped operands of `in`