code: def check_iter_type(obj, type):
      return isinstance(obj, type) or (
          isinstance(obj, Iterable)
          and all(isinstance(o, type) for o in obj)
      )
  
file_path: BigDL/python/chronos/src/bigdl/chronos/model/tf1/VanillaLSTM_keras.py
imports: from bigdl.orca.automl.model.base_keras_model import KerasBaseModel
  from collections.abc import Iterable
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: check_iter_type(obj, type) and returns: unknown