code: def speakers_path(tmp_path_factory):
      path = tmp_path_factory.mktemp("textonly") / "speakers.txt"
      with open(path, "w", encoding="utf-8") as f:
          for speaker in [1, 2, 3]:
              print(f"{speaker}", file=f)
      return path
  
imports: import json
  import multiprocessing
  import os
  from dataclasses import dataclass, field
  from pathlib import Path
  import pytest
  from hydra.utils import instantiate
  from omegaconf import OmegaConf
  from nemo.collections.asr.data.text_to_text import TextToTextDataset, TextToTextItem, TextToTextIterableDataset
  from nemo.collections.common import tokenizers
label_desc: Use image node_id 2 for calling a global function with example usage: speakers_path(tmp_path_factory) and returns: path