code: def linear(x, weight, bias=None, name=None):
      weight = ivy.swapaxes(weight, -1, -2)
      return ivy.linear(x, weight, bias=bias)
  
file_path: ivy/ivy/functional/frontends/paddle/nn/functional/common.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 7 for calling a global function with example usage: linear(x, weight, bias, name) and returns: ivy