code: def is_empty(path):
      """Function to check if folder at given path exists and is not empty.
  
      Returns True if folder is empty or does not exist.
      """
      empty = False
      if os.path.exists(path) and not os.path.isfile(path):
          # Checking if the directory is empty or not
          if not os.listdir(path):
              empty = True
              print(
                  "'test_images' folder is empty. Please place images to be tested in this folder."
              )
      else:
          empty = True
          print(
              "There is no 'test_images' folder under current directory. Please create one and place images to be tested there."
          )
      return empty
  
file_path: shap/shap/utils/image.py
imports: import os
  from textwrap import wrap
  import cv2
  import matplotlib.pyplot
  import numpy
  import shap
label_desc: Use image node_id 1 for calling a global function with example usage: is_empty(path) and returns: empty