code: def test_should_be_serializable(self):
      # Given
      parser = CustomEntityParser.build(
          DATASET,
          CustomEntityParserUsage.WITHOUT_STEMS,
          resources=dict(),
      )
      self.tmp_file_path.mkdir()
      parser_path = self.tmp_file_path / "custom_entity_parser"
      parser.persist(parser_path)
      loaded_parser = CustomEntityParser.from_path(parser_path)
  
      # When
      scope = ["dummy_entity_1"]
      text = "dummy_entity_1 dummy_1"
      result = loaded_parser.parse(text, scope=scope)
  
      # Then
      expected_entities = [
          {
              "value": "dummy_entity_1",
              "resolved_value": "dummy_entity_1",
              "range": {"start": 0, "end": 14},
              "entity_kind": "dummy_entity_1",
          },
          {
              "value": "dummy_1",
              "resolved_value": "dummy_entity_1",
              "range": {"start": 15, "end": 22},
              "entity_kind": "dummy_entity_1",
          },
      ]
      self.assertListEqual(expected_entities, result)
      license_path = parser_path / "parser" / "parser_1" / "LICENSE"
      self.assertTrue(license_path.exists())
      with license_path.open(encoding="utf8") as f:
          license_content = f.read()
      self.assertEqual("some license content here", license_content)
  
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 7 for calling the TestCustomEntityParser obj's underlying member method code with example usage: obj.test_should_be_serializable() without return types