code: def test_should_use_cache(self, mocked_parse):
      # Given
      mocked_parse.return_value = []
      parser = CustomEntityParser.build(
          DATASET,
          CustomEntityParserUsage.WITHOUT_STEMS,
          resources=dict(),
      )
  
      text = ""
  
      # When
      parser.parse(text)
      parser.parse(text)
  
      # Then
      self.assertEqual(1, mocked_parse.call_count)
  
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 6 for calling the TestCustomEntityParser obj's underlying member method code with example usage: obj.test_should_use_cache(mocked_parse) without return types