code: def _maybe_image_model(model):
      # type: (Model) -> bool
      """Decide whether ``model`` is used for images."""
      # FIXME: replace try-except with something else
      try:
          # search for the first occurrence of an "image" layer
          _search_layer_backwards(model, _is_possible_image_model_layer)
          return True
      except ValueError:
          return False
  
imports: from __future__ import absolute_import
  from typing import Union, Optional, Callable, Tuple, List, TYPE_CHECKING
  import numpy
  import keras
  import keras.backend
  from keras.models import Model
  from keras.layers import Layer
  from keras.layers import Conv2D, MaxPooling2D, AveragePooling2D, GlobalMaxPooling2D, GlobalAveragePooling2D
  from keras.preprocessing.image import array_to_img
  from eli5.base import Explanation, TargetExplanation
  from eli5.explain import explain_prediction
  from .gradcam import gradcam, gradcam_backend
label_desc: Use image node_id 6 for calling a global function with example usage: _maybe_image_model(model) and returns: True, False