code: def get_acti_layer(act: tuple[str, dict] | str, nchan: int = 0):
      if act == "prelu":
          act = ("prelu", {"num_parameters": nchan})
      act_name, act_args = split_args(act)
      act_type = Act[act_name]
      return act_type(**act_args)
  
imports: from __future__ import annotations
  import torch
  import torch.nn
  from monai.networks.blocks.convolutions import Convolution
  from monai.networks.layers.factories import Act, Conv, Dropout, Norm, split_args
  from monai.utils import deprecated_arg
label_desc: Use image node_id 1 for calling a global function with example usage: get_acti_layer(act, nchan) and returns: act_type