code: def test_valid_stories_rules_actions_in_domain(
      file_name: Text, data_type: Text, tmp_path: Path
  ):
      domain = tmp_path / "domain.yml"
      domain.write_text(
          f"""
          version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
          intents:
          - greet
          actions:
          - action_greet
          """
      )
      file_name = tmp_path / f"{file_name}.yml"
      file_name.write_text(
          f"""
          version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
          {file_name}:
          - {data_type}: test path
            steps:
            - intent: greet
            - action: action_greet
          """
      )
      importer = RasaFileImporter(
          domain_path=domain, training_data_paths=[file_name]
      )
      validator = Validator.from_importer(importer)
      assert validator.verify_actions_in_stories_rules()
  
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 26 for calling a global function with example usage: test_valid_stories_rules_actions_in_domain(file_name, data_type, tmp_path) without return types