code: def as_torch_dict(array_dict):
      """Convert a dict whose values are numpy arrays to PyTorch tensors.
  
      Modifies array_dict in place.
  
      Args:
          array_dict (dict): Dictionary of data in numpy arrays
  
      Returns:
          dict: Dictionary of data in PyTorch tensors
  
      """
      for key, value in array_dict.items():
          array_dict[key] = np_to_torch(value)
      return array_dict
  
imports: import copy
  import math
  import warnings
  import torch
  from torch import nn
  import torch.nn.functional
label_desc: Use image node_id 7 for calling a global function with example usage: as_torch_dict(array_dict) and returns: array_dict