code: def get_act_layer(name: Union[Type[nn.Module], str] = "relu"):
      """
      Activation Layer Factory
      Fetching activation layers by name with this function allows export or torch script friendly
      functions to be returned dynamically based on current config.
      """
      if not name:
          return None
      if isinstance(name, type):
          return name
      return _ACT_LAYER_DEFAULT[name]
  
file_path: towhee/towhee/models/utils/create_act.py
imports: from typing import Union, Callable, Type
  import torch
  from torch import nn
  from torch.nn import functional
  from towhee.models.layers.activations import GELU, HardSigmoid, HardSwish, HardMish, Mish, PReLU, Sigmoid, Swish, Tanh
  from towhee.models.layers.activations import gelu, hard_sigmoid, hard_swish, hard_mish, mish, sigmoid, swish, tanh
label_desc: Use image node_id 2 for calling a global function with example usage: get_act_layer(name) and returns: _ACT_LAYER_DEFAULT, None, name