code: def test_migrate_domain_from_dir_with_other_sections(tmp_path: Path):
      domain_dir = tmp_path / "domain"
      domain_dir.mkdir()
      domain_file_one = "domain_one.yml"
      domain_file_two = "domain_two.yml"
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          entities:
          - outdoor
          slots:
            outdoor_seating:
             type: bool
             influence_conversation: false
          """,
          domain_file_one,
      )
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          intents:
          - greet
          forms:
            reservation_form:
              required_slots:
                 outdoor_seating:
                 - type: from_intent
                   value: true
                   intent: confirm
          """,
          domain_file_two,
      )
  
      new_domain_dir = tmp_path / "migrated_domain"
      migrate.migrate_domain_format(domain_dir, new_domain_dir)
      domain = Domain.from_directory(new_domain_dir)
      assert domain
  
      for file in new_domain_dir.iterdir():
          migrated = rasa.shared.utils.io.read_yaml_file(file)
  
          migrated_training_data_version = migrated.get("version")
          assert (
              migrated_training_data_version
              == LATEST_TRAINING_DATA_FORMAT_VERSION
          )
  
          if file.name == domain_file_one:
              assert migrated.get("entities") == ["outdoor"]
          elif file.name == domain_file_two:
              assert migrated.get("intents") == ["greet"]
  
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 14 for calling a global function with example usage: test_migrate_domain_from_dir_with_other_sections(tmp_path) without return types