code: def create_act_layer(
      name: Union[nn.Module, str], inplace=None, **kwargs
  ):
      act_layer = get_act_layer(name)
      if act_layer is None:
          return None
      return (
          act_layer(**kwargs)
          if inplace is None
          else act_layer(inplace=inplace, **kwargs)
      )
  
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 3 for calling a global function with example usage: create_act_layer(name, inplace) and returns: unknown, None