code: def to_channels_last(ten):
      return (
          ten
          if ten.ndim != 4
          else ten.to(memory_format=torch.channels_last)
      )
  
file_path: pytorch/benchmarks/dynamo/microbenchmarks/operatorbench.py
imports: import click
  import numpy
  import torch
  from operator_inp_utils import OperatorInputsLoader
  from torch._dynamo.backends.cudagraphs import cudagraphs_inner
  from torch._dynamo.testing import same
  from torch._inductor.compile_fx import compile_fx
  from torch._inductor.decomposition import decompositions
  from torch._inductor.lowering import lowerings
  from torch._inductor.utils import gen_gm_and_inputs
  from torch.utils._pytree import tree_map_only
label_desc: Use image node_id 4 for calling a global function with example usage: to_channels_last(ten) and returns: unknown