code: def test_migrate_domain_all_keys(
      tmp_path: Path, domain_out_file: Path
  ):
      existing_domain_file = prepare_domain_path(
          tmp_path,
          """
          version: "2.0"
          intents:
          - greet
          entities:
          - city
          slots:
            city:
              type: text
              influence_conversation: false
          responses:
              utter_greet:
              - text: "Hi there!"
          actions:
          - action_check_time
          forms:
            booking_form:
              required_slots:
                city:
                - type: from_entity
                  entity: city
          """,
          "domain.yml",
      )
      migrate.migrate_domain_format(
          existing_domain_file, domain_out_file
      )
      domain = Domain.from_path(domain_out_file)
      assert domain
  
      migrated_domain = rasa.shared.utils.io.read_yaml_file(
          domain_out_file
      )
      migrated_intents = migrated_domain.get("intents")
      assert "greet" in migrated_intents
  
      migrated_entities = migrated_domain.get("entities")
      assert "city" in migrated_entities
  
      migrated_responses = migrated_domain.get("responses")
      assert "utter_greet" in migrated_responses
  
      migrated_actions = migrated_domain.get("actions")
      assert "action_check_time" in migrated_actions
  
      migrated_training_data_version = migrated_domain.get("version")
      assert (
          migrated_training_data_version
          == LATEST_TRAINING_DATA_FORMAT_VERSION
      )
  
imports: import itertools
  import shutil
  import re
  import textwrap
  from pathlib import Path
  from typing import Text, Any, Tuple, Callable
  from unittest.mock import patch, call
  import pytest
  import rasa.shared.utils.io
  from rasa.core import migrate
  from rasa.shared.core.domain import Domain
  from rasa.shared.exceptions import RasaException
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
label_desc: Use image node_id 7 for calling a global function with example usage: test_migrate_domain_all_keys(tmp_path, domain_out_file) without return types