code: def _coerce_cmp_val(x, y):
      if sys.version_info[0] == 2:
          return x
      if x is None:
          if y is None:
              return ""
          return type(y)()
      if type(x) == type(y):  # pylint: disable=unidiomatic-typecheck
          return x
      if isinstance(x, (int, float)) and isinstance(y, (int, float)):
          return x
      if isinstance(x, str):
          return x
      if isinstance(y, str):
          return ""
      return str(x)
  
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 14 for calling a global function with example usage: _coerce_cmp_val(x, y) and returns: str, x, type, x, x, x, str, str