code: def metadata_collate_fn(metadata: list):
      return {k: [d[k] for d in metadata] for k in metadata[0].keys()}
  
imports: import numpy
  from typing import NamedTuple, Mapping, Dict
  from enum import Enum
  from dataclasses import dataclass
  import torch
  import torch.utils.data.dataloader
  from jiant.utils.python.datastructures import ExtendedDataClassMixin, combine_dicts
label_desc: Use image node_id 2 for calling a global function with example usage: metadata_collate_fn(metadata) and returns: unknown