code: def list_of_dicts_to_dict_of_lists(list_of_dicts):
      dict_of_lists = defaultdict(list)
      for dct in list_of_dicts:
          for key, value in dct.items():
              dict_of_lists[key].append(value)
      return dict(dict_of_lists)
  
imports: from __future__ import annotations
  import collections.abc
  import contextlib
  from collections import defaultdict
  from copy import copy
  import torch
  from torchvision import datasets, tv_tensors
  from torchvision.transforms.v2 import functional
label_desc: Use image node_id 7 for calling a global function with example usage: list_of_dicts_to_dict_of_lists(list_of_dicts) and returns: dict