code: def _val_cmp(x, y, sort):
      if sort.startswith("-"):
          sort = sort[1:]
          rev = -1
      else:
          rev = 1
      x_val = x.get(sort)
      y_val = y.get(sort)
      x_val_coerced = _coerce_cmp_val(x_val, y_val)
      y_val_coerced = _coerce_cmp_val(y_val, x_val_coerced)
      return rev * (
          (x_val_coerced > y_val_coerced)
          - (x_val_coerced < y_val_coerced)
      )
  
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 13 for calling a global function with example usage: _val_cmp(x, y, sort) and returns: unknown