code: def test_should_respect_scope(self):
      # Given
      parser = CustomEntityParser.build(
          DATASET,
          CustomEntityParserUsage.WITHOUT_STEMS,
          resources=dict(),
      )
      scope = ["dummy_entity_1"]
      text = "dummy_entity_2"
  
      # When
      result = parser.parse(text, scope=scope)
  
      # Then
      self.assertListEqual([], result)
  
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 5 for calling the TestCustomEntityParser obj's underlying member method code with example usage: obj.test_should_respect_scope() without return types