code: def thwc_to_cthw(data: torch.Tensor) -> torch.Tensor:
      """
      Permute tensor from (time, height, weight, channel) to
      (channel, height, width, time).
      """
      return data.permute(3, 0, 1, 2)
  
imports: from __future__ import annotations
  import csv
  import itertools
  import logging
  import math
  import sys
  import threading
  from collections import defaultdict
  from dataclasses import Field, field, fields
  from fractions import Fraction
  from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
  import av
  import numpy
  import torch
  from iopath.common.file_io import g_pathmgr
label_desc: Use image node_id 1 for calling a global function with example usage: thwc_to_cthw(data) and returns: data