code: def default_collate(batch: List[Any]) -> Any:
      """The :func:`flash.data.utilities.collate.default_collate` extends `torch.utils.data._utils.default_collate` to
      first extract any metadata from the samples in the batch (in the ``"metadata"`` key). The list of metadata entries
      will then be inserted into the collated result.
  
      Args:
          batch: The list of samples to collate.
  
      Returns:
          The collated batch.
  
      """
      return _default_collate(batch)
  
imports: import functools
  from typing import Any, Callable, List, Mapping
  from torch.utils.data._utils.collate import default_collate
  from flash.core.data.io.input import DataKeys
label_desc: Use image node_id 3 for calling a global function with example usage: default_collate(batch) and returns: _default_collate