code: def test_entity_overlap():
      assert do_entities_overlap([CH_correct_entity, CH_wrong_entity])
      assert not do_entities_overlap(EN_targets)
  
imports: import json
  import os
  import sys
  import textwrap
  from pathlib import Path
  from typing import Text, List, Dict, Any, Set, Optional
  from rasa.core.agent import Agent
  from rasa.core.channels import UserMessage
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from unittest.mock import Mock, MagicMock
  from rasa.nlu.extractors.crf_entity_extractor import CRFEntityExtractor
  from rasa.nlu.extractors.mitie_entity_extractor import MitieEntityExtractor
  from rasa.nlu.extractors.spacy_entity_extractor import SpacyEntityExtractor
  from rasa.shared.core.trackers import DialogueStateTracker
  from tests.conftest import AsyncMock
  import rasa.nlu.test
  import rasa.shared.nlu.training_data.loading
  import rasa.shared.utils.io
  import rasa.utils.io
  import rasa.model
  from rasa.nlu.test import is_token_within_entity, do_entities_overlap, merge_labels, remove_empty_intent_examples, remove_empty_response_examples, _get_active_entity_extractors, drop_intents_below_freq, cross_validate, run_evaluation, substitute_labels, IntentEvaluationResult, EntityEvaluationResult, ResponseSelectionEvaluationResult, evaluate_intents, evaluate_entities, evaluate_response_selections, NO_ENTITY, collect_successful_entity_predictions, collect_incorrect_entity_predictions, merge_confidences, _get_entity_confidences, get_eval_data, does_token_cross_borders, align_entity_predictions, determine_intersection, determine_token_labels, _remove_entities_of_extractors
  from rasa.nlu.tokenizers.tokenizer import Token
  from rasa.shared.constants import DEFAULT_NLU_FALLBACK_INTENT_NAME
  from rasa.shared.importers.importer import TrainingDataImporter
  from rasa.shared.nlu.constants import NO_ENTITY_TAG, INTENT, INTENT_RANKING_KEY, INTENT_NAME_KEY, PREDICTED_CONFIDENCE_KEY, ENTITIES
  from rasa.shared.nlu.constants import ENTITY_ATTRIBUTE_TYPE, ENTITY_ATTRIBUTE_VALUE, EXTRACTOR
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.model_testing import compare_nlu_models
  from rasa.utils.tensorflow.constants import EPOCHS, RUN_EAGERLY
  from tests.nlu.utilities import write_file_config
label_desc: Use image node_id 4 for calling a global function with example usage: test_entity_overlap() without return types