code: def set_hparam(
      config: Dict[Any, Any], name: str, value: Any
  ) -> Dict[Any, Any]:
      config = config.copy()
      config["hyperparameters"][name] = {"type": "const", "val": value}
      return config
  
imports: import os
  from pathlib import Path
  from typing import Any, Dict, List, Union
  from determined.common import api, util
  from determined.common.api import authentication
label_desc: Use image node_id 24 for calling a global function with example usage: set_hparam(config, name, value) and returns: config