code: def lin2img(tensor, img_res):
      batch_size, num_samples, channels = tensor.shape
      return tensor.permute(0, 2, 1).view(
          batch_size, channels, img_res[0], img_res[1]
      )
  
imports: import plotly.graph_objs
  import plotly.offline
  import numpy
  import torch
  from skimage import measure
  import torchvision
  import trimesh
  from PIL import Image
  from utils import rend_util
  import pickle
label_desc: Use image node_id 14 for calling a global function with example usage: lin2img(tensor, img_res) and returns: tensor