code: def concat_tensor_dict_list(tensor_dict_list):
      """Concatenates a dict of tensors lists.
  
      Each list of tensors gets concatenated into one tensor.
  
      Args:
          tensor_dict_list (dict[list[ndarray]]): Dict with lists of tensors.
  
      Returns:
          dict[ndarray]: A dict with the concatenated tensors.
      """
      keys = list(tensor_dict_list[0].keys())
      ret = dict()
      for k in keys:
          example = tensor_dict_list[0][k]
  
          if isinstance(example, dict):
              v = concat_tensor_dict_list(
                  [x[k] for x in tensor_dict_list]
              )
          else:
              v = concat_tensor_list([x[k] for x in tensor_dict_list])
  
          ret[k] = v
  
      return ret
  
imports: import collections
  import numpy
  import tensorflow
label_desc: Use image node_id 13 for calling a global function with example usage: concat_tensor_dict_list(tensor_dict_list) and returns: ret