code: def get_act_layer(name: tuple | str):
      """
      Create an activation layer instance.
  
      For example, to create activation layers:
  
      .. code-block:: python
  
          from monai.networks.layers import get_act_layer
  
          s_layer = get_act_layer(name="swish")
          p_layer = get_act_layer(name=("prelu", {"num_parameters": 1, "init": 0.25}))
  
      Args:
          name: an activation type string or a tuple of type string and parameters.
      """
      if name == "":
          return torch.nn.Identity()
      act_name, act_args = split_args(name)
      act_type = Act[act_name]
      return act_type(**act_args)
  
file_path: MONAI/monai/networks/layers/utils.py
imports: from __future__ import annotations
  import torch.nn
  from monai.networks.layers.factories import Act, Dropout, Norm, Pool, split_args
  from monai.utils import has_option
label_desc: Use image node_id 2 for calling a global function with example usage: get_act_layer(name) and returns: act_type, torch