code: def get_worker_config(
      build_config: Dict[str, Any],
      worker_config_version: Optional[str] = None,
  ) -> Dict[str, Any]:
      worker_config = {"build": build_config}
  
      if worker_config_version is not None:
          worker_config["version"] = worker_config_version
  
      return worker_config
  
imports: from itertools import chain
  from itertools import combinations
  import json
  from pathlib import Path
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from uuid import uuid4
  from pydantic import BaseModel
  import pytest
  import yaml
  from syft.custom_worker.config import CustomBuildConfig
  from syft.custom_worker.config import CustomWorkerConfig
label_desc: Use image node_id 3 for calling a global function with example usage: get_worker_config(build_config, worker_config_version) and returns: worker_config