code: def test_verify_form_slots_invalid_domain(tmp_path: Path):
      domain = tmp_path / "domain.yml"
      domain.write_text(
          f"""
          version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
          forms:
            name_form:
              required_slots:
                - first_name
                - last_nam
          slots:
               first_name:
                  type: text
                  mappings:
                  - type: from_text
               last_name:
                  type: text
                  mappings:
                  - type: from_text
          """
      )
      importer = RasaFileImporter(domain_path=domain)
      validator = Validator.from_importer(importer)
      with pytest.warns(UserWarning) as w:
          validity = validator.verify_form_slots()
          assert validity is False
  
      assert (
          w[0].message.args[0]
          == "The form slot 'last_nam' in form 'name_form' "
          "is not present in the domain slots."
          "Please add the correct slot or check for typos."
      )
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  from _pytest.logging import LogCaptureFixture
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from pathlib import Path
label_desc: Use image node_id 23 for calling a global function with example usage: test_verify_form_slots_invalid_domain(tmp_path) without return types