code: def set_profiling_enabled(config: Dict[Any, Any]) -> Dict[Any, Any]:
      config = config.copy()
      config.setdefault("profiling", {})
      config["profiling"]["enabled"] = True
      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 27 for calling a global function with example usage: set_profiling_enabled(config) and returns: config