def test_get_all_specs(self):

        specs_dict = interaction_registry.Registry.get_all_specs()
        self.assertEqual(
            len(specs_dict.keys()),
            len(interaction_registry.Registry.get_all_interaction_ids()))

        terminal_interactions_count = 0
        for item in specs_dict.values():
            self.assertIn(item['display_mode'], base.ALLOWED_DISPLAY_MODES)
            self.assertTrue(isinstance(item['is_terminal'], bool))
            if item['is_terminal']:
                terminal_interactions_count += 1

        self.assertEqual(
            terminal_interactions_count, EXPECTED_TERMINAL_INTERACTIONS_COUNT)
Histogram equalization of a grayscale image.
dataset/ETHPy150Open oppia/oppia/core/domain/interaction_registry_test.py/InteractionRegistryUnitTests.test_get_all_specs--crossover with--dataset/ETHPy150Open jesolem/PCV/PCV/tools/imtools.py/histeq