code: def linear(
      x: torch.Tensor,
      weight: torch.Tensor,
      /,
      *,
      bias: Optional[torch.Tensor] = None,
      out: Optional[torch.Tensor] = None,
  ) -> torch.Tensor:
      return torch.nn.functional.linear(x, weight, bias)
  
imports: from typing import Optional, Tuple, Union, Sequence
  import torch
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from .None import backend_version
  from ivy.functional.ivy.layers import _get_embed_dim, _handle_padding, _deconv_length
label_desc: Use image node_id 2 for calling a global function with example usage: linear() and returns: torch