code: def _run_sort_key(sort):
      return functools.cmp_to_key(lambda x, y: _run_cmp(x, y, sort))
  
imports: import errno
  import functools
  import logging
  import os
  import shutil
  import tempfile
  from guild import config
  from guild import run
  from guild import util
label_desc: Use image node_id 21 for calling a global function with example usage: _run_sort_key(sort) and returns: functools