code: def _linear_flops_compute(input, weight, bias=None):
      out_features = weight.shape[0]
      macs = input.numel() * out_features
      return 2 * macs, macs
  
imports: import time
  import torch
  import torch.nn
  import torch.nn.functional
  from functools import partial
  from typing import List, Optional
  from collections import OrderedDict
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _linear_flops_compute(input, weight, bias) and returns: unknown,  macs