code: def register_act_fn(name):
      def register_fn(cls):
          if name in SUPPORTED_ACT_FNS:
              raise ValueError(
                  "Cannot register duplicate activation function ({})".format(
                      name
                  )
              )
          SUPPORTED_ACT_FNS.append(name)
          ACT_FN_REGISTRY[name] = cls
          return cls
  
      return register_fn
  
file_path: ml-cvnets/cvnets/layers/activation/__init__.py
imports: import argparse
  import importlib
  import os
  from typing import Optional
  import torch.nn
  from utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: register_act_fn(name) and returns: register_fn, cls