code: def test_validate_after_changing_response_text_in_domain(
      get_validation_method: Callable[..., ValidationMethodType],
      project: Text,
      nlu: bool,
      core: bool,
  ):
      # training
      importer = _project_files(project)
      old_domain = importer.get_domain()
  
      validate = get_validation_method(
          finetuning=False, load=False, core=core, nlu=nlu
      )
      validate(importer=importer)
  
      # Change NLG content but keep actions the same
      domain_with_changed_nlg = old_domain.as_dict()
      domain_with_changed_nlg[KEY_RESPONSES]["utter_greet"].append(
          {"text": "hi"}
      )
      domain_with_changed_nlg = Domain.from_dict(
          domain_with_changed_nlg
      )
      importer.get_domain = lambda: domain_with_changed_nlg
  
      # finetuning
      loaded_validate = get_validation_method(
          finetuning=False, load=True, core=core, nlu=nlu
      )
      assert importer.get_domain() != old_domain
      loaded_validate(importer=importer)
  
imports: import os
  from pathlib import Path
  import copy
  from typing import Callable, List, Optional, Text, Dict, Any
  from _pytest.monkeypatch import MonkeyPatch
  import pytest
  from rasa.engine.graph import ExecutionContext, GraphComponent, GraphSchema, SchemaNode
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.graph_components.validators.finetuning_validator import FinetuningValidator
  from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer
  from rasa.core.policies.rule_policy import RulePolicy
  from rasa.shared.constants import DEFAULT_CONFIG_PATH, DEFAULT_DATA_PATH, DEFAULT_DOMAIN_PATH
  from rasa.shared.core.domain import KEY_RESPONSES, Domain
  from rasa.shared.importers.rasa import RasaFileImporter
  from rasa.shared.importers.importer import NluDataImporter, TrainingDataImporter
  import rasa.shared.utils.io
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.shared.nlu.constants import ACTION_NAME, INTENT, TEXT
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
label_desc: Use image node_id 5 for calling a global function with example usage: test_validate_after_changing_response_text_in_domain(get_validation_method, project, nlu, core) without return types