code: def collate_fn(samples):
      x, y = zip(*samples)
      return tf.stack(x, axis=0), list(y)
  
file_path: doctr/tests/tensorflow/test_datasets_loader_tf.py
imports: from typing import List, Tuple
  import tensorflow
  from doctr.datasets import DataLoader
label_desc: Use image node_id 1 for calling the MockDatasetBis obj's underlying member method code with example usage: obj.collate_fn(samples) and returns: tf,  list