code: def act_map(act):
      if act == "linear":
          return lambda x: x
      elif act == "elu":
          return F.elu
      elif act == "sigmoid":
          return torch.sigmoid
      elif act == "tanh":
          return torch.tanh
      elif act == "relu":
          return torch.nn.functional.relu
      elif act == "relu6":
          return torch.nn.functional.relu6
      elif act == "softplus":
          return torch.nn.functional.softplus
      elif act == "leaky_relu":
          return torch.nn.functional.leaky_relu
      else:
          raise Exception("wrong activate function")
  
imports: import torch
  from torch import nn
  import torch.nn.functional
  from ..backend import *
label_desc: Use image node_id 1 for calling a global function with example usage: act_map(act) and returns: function, F, torch, torch, torch, torch, torch, torch