code: def show_nodeps(request):
      # register tear down
      old_format_as_image = eli5.ipython.format_as_image
  
      def fin():
          # tear down
          eli5.ipython.format_as_image = old_format_as_image
  
      request.addfinalizer(fin)
  
      # set up
      eli5.ipython.format_as_image = ImportError("mock test")
  
      # object return
      yield eli5.show_prediction
  
file_path: eli5/tests/test_keras_integration.py
imports: from __future__ import print_function
  import pytest
  import numpy
  from PIL import Image
  from keras.applications import mobilenet_v2
  from keras.models import Sequential
  import eli5
  from eli5.base import Explanation
  from eli5 import format_as_image
  from eli5.formatters.image import expand_heatmap
  from .utils_image import assert_pixel_by_pixel_equal
label_desc: Use image node_id 6 for calling a global function with example usage: show_nodeps(request) without return types