code: def process_one_operation(operation):
      """
      operation examples:
      - ('copy', ('src_file','tgt_file'))
      - ('segment', ('src_file', [('seg_1', 'tgt_file_1'),..., ('seg_N', 'tgt_file_N')]))
      """
      op, item = operation
      assert (
          op in OPERATIONS_LIST
      ), f"expected operation in list: {OPERATIONS_LIST}, found '{op}'"
      if op == "copy":
          copy_file(*item)
      elif op == "link":
          link_file(*item)
      elif op == "segment":
          segment_file_grouped(*item)
  
file_path: textlesslib/examples/expresso/dataset/processing/perform_operations.py
imports: import os
  import shutil
  from pathlib import Path
  from collections import defaultdict
  import scipy.io.wavfile
  from multiprocessing import Pool
  from tqdm import tqdm
  from time import time
label_desc: Use image node_id 6 for calling a global function with example usage: process_one_operation(operation) without return types