code: def test_migrate_folder_only_migrates_domain_files(tmp_path: Path):
      domain_dir = tmp_path / "domain"
      domain_dir.mkdir()
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          entities:
              - outdoor
          slots:
            outdoor_seating:
             type: bool
             influence_conversation: false
          """,
          "slots.yml",
      )
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          forms:
            reservation_form:
              required_slots:
                 outdoor_seating:
                 - type: from_intent
                   value: true
                   intent: confirm
          """,
          "forms.yml",
      )
  
      prepare_domain_path(
          domain_dir,
          """
          not a domain file.
          """,
          "not-a-domain-file.yml",
      )
  
      out_dir = tmp_path / "out_dir"
      migrate.migrate_domain_format(domain_dir, out_dir)
      assert set(f.name for f in out_dir.iterdir()) == {
          "forms.yml",
          "slots.yml",
      }
  
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 19 for calling a global function with example usage: test_migrate_folder_only_migrates_domain_files(tmp_path) without return types