code: def _check_type(item, name, expect_type):
      from bigdl.nano.utils.common import invalidInputError
  
      invalidInputError(
          isinstance(item, expect_type),
          f"a {str(expect_type)} is expected for {name} but found {type(item)}",
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: _check_type(item, name, expect_type) without return types