code: def global_raise_objects_class(ob, class_object):
      """raise error if 'objects' isn't of the desired class"""
      class_name = search("(?<=<class ').*(?='>)", str(class_object))[0]
      raise TypeError(
          "'objects' should be either "
          + class_name
          + " object or list/tuple of "
          + class_name
          + " objects: "
          + str(type(ob))
      )
  
file_path: DALEX/python/dalex/dalex/_global_checks.py
imports: import pkg_resources
  from importlib import import_module
  from re import search
  import numpy
  import pandas
label_desc: Use image node_id 3 for calling a global function with example usage: global_raise_objects_class(ob, class_object) without return types