code: def test_test_does_not_use_rules(
      tmp_path: Path, default_agent: Agent
  ):
      from rasa.core.test import _create_data_generator
  
      test_file = tmp_path / "test.yml"
      test_name = "my test story"
      tests = f"""
  stories:
  - story: {test_name}
    steps:
    - intent: greet
    - action: utter_greet
  
  rules:
  - rule: rule which is ignored
    steps:
    - intent: greet
    - action: utter_greet
      """
  
      test_file.write_text(tests)
  
      generator = _create_data_generator(str(test_file), default_agent)
      test_trackers = generator.generate_story_trackers()
      assert len(test_trackers) == 1
      assert test_trackers[0].sender_id == test_name
  
imports: import asyncio
  import sys
  from pathlib import Path
  import textwrap
  from typing import List, Text
  import pytest
  from _pytest.capture import CaptureFixture
  from _pytest.monkeypatch import MonkeyPatch
  import rasa.shared.utils.io
  import rasa.utils.io
  from rasa.core.agent import Agent
  from rasa.shared.core.events import UserUttered
  from rasa.core.test import EvaluationStore, WronglyClassifiedUserUtterance, WronglyPredictedAction
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.training_data.story_writer.yaml_story_writer import YAMLStoryWriter
  import rasa.model
  import rasa.cli.utils
  from rasa.nlu.test import NO_ENTITY
  import rasa.core
  from rasa.shared.nlu.constants import ENTITY_ATTRIBUTE_VALUE, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, ENTITY_ATTRIBUTE_TYPE, ENTITY_ATTRIBUTE_TEXT
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
label_desc: Use image node_id 12 for calling a global function with example usage: test_test_does_not_use_rules(tmp_path, default_agent) without return types