code: def _table_row_sort_key(sort):
      if not sort:
          return lambda _: 0
      return functools.cmp_to_key(lambda x, y: _item_cmp(x, y, sort))
  
imports: import functools
  import logging
  import os
  import sys
  import shutil
  import typing
  import click
  from guild import ansi_util
  from guild import config
label_desc: Use image node_id 11 for calling a global function with example usage: _table_row_sort_key(sort) and returns: functools, function