code: def is_cmd_found(cmd):
      """Check whether executable `cmd` exists or not and return a bool."""
      try:
          find_cmd(cmd)
          return True
      except FindCmdError:
          return False
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/process.py
imports: from __future__ import print_function
  import os
  import sys
  from ._process_common import getoutputerror, get_output_error_code, process_handler
  from .None import py3compat
label_desc: Use image node_id 2 for calling a global function with example usage: is_cmd_found(cmd) and returns: True, False