code: def test_migrate_domain_with_multiple_files_with_duplicate_forms(
      tmp_path: Path,
  ):
      domain_dir = tmp_path / "domain"
      domain_dir.mkdir()
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          forms:
            reservation_form:
              required_slots:
                 outdoor_seating:
                 - type: from_intent
                   value: true
                   intent: confirm
          """,
          "forms_one.yml",
      )
  
      prepare_domain_path(
          domain_dir,
          """
          version: "2.0"
          forms:
            reservation_form:
              required_slots:
                 cuisine:
                 - type: from_entity
                   entity: cuisine
          """,
          "forms_two.yml",
      )
  
      with pytest.raises(
          RasaException,
          match="Domain files with multiple 'forms' sections were provided.",
      ):
          migrate.migrate_domain_format(domain_dir, None)
  
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 13 for calling a global function with example usage: test_migrate_domain_with_multiple_files_with_duplicate_forms(tmp_path) without return types