code: def test_create_custom_entity_parser_configuration(self):
      # Given
      entities = {
          "a": {
              "utterances": {"a a": "a", "aa": "a", "c": "c"},
              "matching_strictness": 1.0,
          },
          "b": {"utterances": {"b": "b"}, "matching_strictness": 1.0},
      }
  
      # When
      config = _create_custom_entity_parser_configuration(
          entities, stopwords_fraction=0.5, language="en"
      )
  
      # Then
      expected_dict = {
          "entity_parsers": [
              {
                  "entity_identifier": "a",
                  "entity_parser": {
                      "threshold": 1.0,
                      "n_gazetteer_stop_words": 1,
                      "gazetteer": [
                          {
                              "raw_value": "a a",
                              "resolved_value": "a",
                          },
                          {
                              "raw_value": "aa",
                              "resolved_value": "a",
                          },
                          {
                              "raw_value": "c",
                              "resolved_value": "c",
                          },
                      ],
                  },
              },
              {
                  "entity_identifier": "b",
                  "entity_parser": {
                      "threshold": 1.0,
                      "n_gazetteer_stop_words": 0,
                      "gazetteer": [
                          {
                              "raw_value": "b",
                              "resolved_value": "b",
                          },
                      ],
                  },
              },
          ]
      }
      self.assertDictEqual(expected_dict, config)
  
imports: from __future__ import unicode_literals
  from pathlib import Path
  from mock import patch
  from snips_nlu.constants import STEMS
  from snips_nlu.dataset import validate_and_format_dataset
  from snips_nlu.entity_parser import CustomEntityParser
  from snips_nlu.entity_parser.custom_entity_parser import CustomEntityParserUsage, _compute_char_shifts, _create_custom_entity_parser_configuration
  from snips_nlu.preprocessing import tokenize
  from snips_nlu.tests.utils import FixtureTest
label_desc: Use image node_id 9 for calling the TestCustomEntityParser obj's underlying member method code with example usage: obj.test_create_custom_entity_parser_configuration() without return types