code: def build_act(
      name: Optional[str], **kwargs: dict[str, Any]
  ) -> Union[nn.Module, None]:
      if name in REGISTERED_ACT_DICT:
          act_cls = REGISTERED_ACT_DICT[name]
          args = build_kwargs_from_config(kwargs, act_cls)
          return act_cls(**args)
  
      return None
  
imports: from __future__ import annotations
  from functools import partial
  from typing import Any, Optional, Union
  from torch import nn
  from kornia.contrib.models.efficient_vit.utils import build_kwargs_from_config
label_desc: Use image node_id 1 for calling a global function with example usage: build_act(name) and returns: None, act_cls