code: def register_param_group_constructor(name: str):
      def _register(func):
          if name in PARAM_GROUP_CONSTRUCTOR_REGISTRY:
              raise ValueError(
                  f"Cannot register duplicate parameter group constructor ({name})"
              )
          PARAM_GROUP_CONSTRUCTOR_REGISTRY[name] = func
          return func
  
      return _register
  
label_desc: Use image node_id 1 for calling a global function with example usage: register_param_group_constructor(name) and returns: _register, func