code: def linear(feat, hidden_size, name, act=None):
      return L.fc(
          feat,
          hidden_size,
          act=act,
          param_attr=F.ParamAttr(name=name + "_w"),
          bias_attr=F.ParamAttr(name=name + "_b"),
      )
  
imports: import os
  import json
  import numpy
  import pgl
  import paddle.fluid
  import paddle.fluid.layers
  from ernie import ErnieModel
  from pgl.utils.logger import log
label_desc: Use image node_id 1 for calling a global function with example usage: linear(feat, hidden_size, name, act) and returns: L