code: def test_migrate_domain_with_diff_slot_types(
      slot_type: Text, value: Any, tmp_path: Path, domain_out_file: Path
  ):
      existing_domain_file = prepare_domain_path(
          tmp_path,
          f"""
          version: "2.0"
          entities:
              - outdoor
          slots:
            outdoor_seating:
             type: {slot_type}
             influence_conversation: false
          forms:
            reservation_form:
              required_slots:
                 outdoor_seating:
                 - type: from_intent
                   value: {value}
                   intent: confirm
          """,
          "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_slots = migrated_domain.get("slots")
      expected_slots = {
          "outdoor_seating": {
              "type": slot_type,
              "influence_conversation": False,
              "mappings": [
                  {
                      "type": "from_intent",
                      "value": value,
                      "intent": "confirm",
                      "conditions": [
                          {
                              "active_loop": "reservation_form",
                              "requested_slot": "outdoor_seating",
                          }
                      ],
                  }
              ],
          }
      }
      assert migrated_slots == expected_slots
  
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 5 for calling a global function with example usage: test_migrate_domain_with_diff_slot_types(slot_type, value, tmp_path, domain_out_file) without return types