code: def tf2pth(v):
      if v.ndim == 4:
          return np.ascontiguousarray(v.transpose(3, 2, 0, 1))
      elif v.ndim == 2:
          return np.ascontiguousarray(v.transpose())
      return v
  
file_path: mmdetection/projects/EfficientDet/convert_tf_to_pt.py
imports: import argparse
  import numpy
  import torch
  from tensorflow.python.training import py_checkpoint_reader
label_desc: Use image node_id 1 for calling a global function with example usage: tf2pth(v) and returns: v, np, np