code: def _check_dict_maps_to_tensors_or_composite_tensors(tensor_map):
      for key, value in tensor_map.items():
          if not (
              isinstance(value, tf.Tensor)
              or tf_utils.is_composite_tensor(value)
          ):
              raise TypeError(
                  "Value for key '%s' should be a Tensor or CompositeTensor object, "
                  "found %s." % (key, type(value))
              )
  
imports: import collections
  import os
  import re
  from absl import logging
  import tensorflow
  from tensorflow_hub import module_attachment_pb2
  from tensorflow_hub import tf_utils
  from google.protobuf import message
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saved_model_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: _check_dict_maps_to_tensors_or_composite_tensors(tensor_map) without return types