code: def pad_list_data_collate(
      batch: Sequence,
      method: str = Method.SYMMETRIC,
      mode: str = NumpyPadMode.CONSTANT,
      **kwargs,
  ):
      """
      Function version of :py:class:`monai.transforms.croppad.batch.PadListDataCollate`.
  
      Same as MONAI's ``list_data_collate``, except any tensors are centrally padded to match the shape of the biggest
      tensor in each dimension. This transform is useful if some of the applied transforms generate batch data of
      different sizes.
  
      This can be used on both list and dictionary data.
      Note that in the case of the dictionary data, this decollate function may add the transform information of
      `PadListDataCollate` to the list of invertible transforms if input batch have different spatial shape, so need to
      call static method: `monai.transforms.croppad.batch.PadListDataCollate.inverse` before inverting other transforms.
  
      Args:
          batch: batch of data to pad-collate
          method: padding method (see :py:class:`monai.transforms.SpatialPad`)
          mode: padding mode (see :py:class:`monai.transforms.SpatialPad`)
          kwargs: other arguments for the `np.pad` or `torch.pad` function.
              note that `np.pad` treats channel dimension as the first dimension.
  
      """
      from monai.transforms.croppad.batch import (
          PadListDataCollate,
      )  # needs to be here to avoid circular import
  
      return PadListDataCollate(method=method, mode=mode, **kwargs)(
          batch
      )
  
imports: from __future__ import annotations
  import hashlib
  import json
  import logging
  import math
  import os
  import pickle
  import sys
  from collections import abc, defaultdict
  from collections.abc import Generator, Iterable, Mapping, Sequence, Sized
  from copy import deepcopy
  from functools import reduce
  from itertools import product, starmap, zip_longest
  from pathlib import PurePath
  from typing import Any
  import numpy
  import torch
  from torch.utils.data._utils.collate import default_collate
  from monai import config
  from monai.config.type_definitions import NdarrayOrTensor, NdarrayTensor, PathLike
  from monai.data.meta_obj import MetaObj
  from monai.utils import MAX_SEED, BlendMode, Method, NumpyPadMode, TraceKeys, convert_data_type, convert_to_dst_type, ensure_tuple, ensure_tuple_rep, ensure_tuple_size, fall_back_tuple, first, get_equivalent_dtype, issequenceiterable, look_up_option, optional_import, pytorch_after
label_desc: Use image node_id 14 for calling a global function with example usage: pad_list_data_collate(batch, method, mode) and returns: PadListDataCollate