code: def write_markers_config_to_yaml(
      path: Path,
      data: Dict[Text, Any],
      markers_filename: Text = "markers.yml",
  ) -> Path:
      markers_path = path / markers_filename
  
      # write markers config to file
      rasa.shared.utils.io.write_yaml(data, markers_path)
      return markers_path
  
imports: from pathlib import Path
  from typing import Callable, Text, Tuple, Dict, Any
  import csv
  import pytest
  from _pytest.pytester import RunResult
  import rasa.cli.evaluate
  from rasa.shared.core.events import ActionExecuted, SlotSet, UserUttered
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.constants import ACTION_SESSION_START_NAME
  from rasa.shared.core.domain import Domain
  from rasa.core.tracker_store import SQLTrackerStore
  from rasa.cli.evaluate import STATS_SESSION_SUFFIX, STATS_OVERALL_SUFFIX
  from tests.conftest import write_endpoint_config_to_yaml
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 2 for calling a global function with example usage: write_markers_config_to_yaml(path, data, markers_filename) and returns: markers_path