code: def intercept(self, func, error_message):
      error = False
      try:
          func()
      except Exception as e:
          if error_message not in str(e):
              invalidInputError(
                  False,
                  "error_message not in the exception raised. "
                  + "error_message: %s, exception: %s"
                  % (error_message, e),
              )
          error = True
  
      if not error:
          invalidInputError(False, "exception is not throw")
  
file_path: BigDL/python/orca/src/bigdl/orca/test_zoo_utils.py
imports: from __future__ import print_function
  import logging
  import shutil
  from unittest import TestCase
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.feature.image import ImageSet
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 7 for calling the ZooTestCase obj's underlying member method code with example usage: obj.intercept(func, error_message) without return types