code: def pil_available():
      """Test if PIL/Pillow is available"""
      out = False
      try:
          from PIL import Image  # noqa
  
          out = True
      except ImportError:
          pass
      return out
  
file_path: catboost/contrib/python/matplotlib-inline/matplotlib_inline/config.py
imports: from traitlets.config.configurable import SingletonConfigurable
  from traitlets import Dict, Instance, Set, Bool, TraitError, Unicode
label_desc: Use image node_id 1 for calling a global function with example usage: pil_available() and returns: out