code: def write_lines(lines, path):
      os.makedirs(os.path.dirname(path), exist_ok=True)
      with open(path, "w", encoding="utf-8") as f:
          for line in lines:
              f.write(f"{line}\n")
  
imports: import argparse
  import glob
  import json
  import os
  import re
  from typing import Callable, List
  from linguistic_tree import LanguageTree
  from espnet2.utils.types import str2bool
label_desc: Use image node_id 2 for calling a global function with example usage: write_lines(lines, path) without return types