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