code: def is_pillow_installed():
      try:
          import PIL  # noqa
  
          return True
      except ImportError:
          return False
  
file_path: scikit-learn/sklearn/datasets/tests/test_common.py
imports: import inspect
  import os
  import numpy
  import pytest
  import sklearn.datasets
label_desc: Use image node_id 1 for calling a global function with example usage: is_pillow_installed() and returns: True, False