code: def th_c_flatten(x):
      """
      Flatten tensor, leaving channel intact.
      Assumes CHW format.
      """
      return x.contiguous().view(x.size(0), -1)
  
imports: import pickle
  import random
  from .optimizers import *
  from .callbacks import *
  import torch
  from pywick.callbacks import *
label_desc: Use image node_id 3 for calling a global function with example usage: th_c_flatten(x) and returns: x