code: def rows_to_cols(
      incoming_data: Dict,
  ) -> Dict[str, Dict[str, Dict[str, List[str]]]]:
      data_column_wise = {}
      for i, header in enumerate(incoming_data["headers"]):
          data_column_wise[header] = [
              str(row[i]) for row in incoming_data["data"]
          ]
      return {"inputs": {"data": data_column_wise}}
  
file_path: gradio/gradio/external_utils.py
imports: import base64
  import math
  import operator
  import re
  import warnings
  from typing import Dict, List, Tuple
  import httpx
  import yaml
  from gradio import components
label_desc: Use image node_id 3 for calling a global function with example usage: rows_to_cols(incoming_data) and returns: dict