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 name is None:
          return None
      if not isinstance(name, str):
          # callable, module, etc
          return name
      if not name:
          return None
      if not (is_no_jit() or is_exportable() or is_scriptable()):
          if name in _ACT_LAYER_ME:
              return _ACT_LAYER_ME[name]
      if not (is_no_jit() or is_exportable()):
          if name in _ACT_LAYER_JIT:
              return _ACT_LAYER_JIT[name]
      return _ACT_LAYER_DEFAULT[name]
  
file_path: pytorch-image-models/timm/layers/create_act.py
imports: from typing import Union, Callable, Type
  from .activations import *
  from .activations_jit import *
  from .activations_me import *
  from .config import is_exportable, is_scriptable, is_no_jit
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, None, _ACT_LAYER_ME, _ACT_LAYER_JIT