code: def mock_a_text_file(sample_lines, line_num, file_name):
      """Generate a mock text file for test."""
      with open(file_name, "w", encoding="utf-8") as f:
          lines = random_upsampling(sample_lines, line_num)
          for line in lines:
              f.write(line + "\n")
  
file_path: delta/delta/data/utils/test_utils.py
imports: import json
  import tempfile
  from pathlib import Path
  import kaldiio
  import numpy
  from delta.data.utils.common_utils import JsonNumpyEncoder
label_desc: Use image node_id 5 for calling a global function with example usage: mock_a_text_file(sample_lines, line_num, file_name) without return types