code: def torch_linear(input, mat2, bias=None, *, out=None):
      if out is not None:
          raise ValueError(
              "Don't support in-place abs for MetaTensor analysis"
          )
      output_shape = list(input.shape)
      output_feature = list(mat2.shape)[0]
      output_shape[-1] = output_feature
      return torch.empty(*output_shape, device="meta")
  
file_path: colossalai/colossalai/fx/tracer/meta_patch/patched_function/arithmetic.py
imports: import torch
  from ...registry import meta_patched_function
label_desc: Use image node_id 4 for calling a global function with example usage: torch_linear(input, mat2, bias) and returns: torch