code: def get_activation(activation: str, **kwargs) -> nn.HybridBlock:
      """
  
      Parameters
      ----------
      activation
          Activation type
  
      Returns
      -------
      mxnet.gluon.HybridBlock
          Activation object
  
      """
      if activation in [
          "relu",
          "sigmoid",
          "softrelu",
          "softsign",
          "tanh",
      ]:
          return nn.Activation(activation=activation, **kwargs)
      if activation == "lrelu":
          return nn.LeakyReLU(alpha=0.2, **kwargs)
      if activation == "elu":
          return nn.ELU(**kwargs)
      if activation == "swish":
          return nn.Swish(**kwargs)
      if activation == "lipswish":
          return LipSwish(**kwargs)
      raise NotImplementedError(activation)
  
file_path: gluonts/src/gluonts/mx/activation.py
imports: from functools import partial
  from typing import Callable
  import mxnet
  import mxnet.gluon.nn
  from gluonts.core.component import validated
  from gluonts.mx import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: get_activation(activation) and returns: nn, nn, nn, nn, LipSwish