code: def _inject_wandb_config_env_vars(
      config: Dict[str, Any],
      env_dict: Dict[str, Any],
      maximum_env_length: int,
  ) -> None:
      str_config = json.dumps(config)
      if len(str_config) <= maximum_env_length:
          env_dict["WANDB_CONFIG"] = str_config
          return
  
      chunks = [
          str_config[i : i + maximum_env_length]
          for i in range(0, len(str_config), maximum_env_length)
      ]
      config_chunks_dict = {
          f"WANDB_CONFIG_{i}": chunk for i, chunk in enumerate(chunks)
      }
      env_dict.update(config_chunks_dict)
  
imports: import hashlib
  import json
  import logging
  import os
  import shlex
  import shutil
  import sys
  import tempfile
  from typing import Any, Dict, List, Optional, Tuple
  import pkg_resources
  import yaml
  from dockerpycreds.utils import find_executable
  from six.moves import shlex_quote
  import wandb
  import wandb.docker
  import wandb.env
  from wandb.apis.internal import Api
  from wandb.sdk.launch.loader import builder_from_config, environment_from_config, registry_from_config
  from .._project_spec import EntryPoint, EntrypointDefaults, LaunchProject, fetch_and_validate_project
  from ..errors import ExecutionError, LaunchError
  from ..registry.abstract import AbstractRegistry
  from ..utils import AZURE_CONTAINER_REGISTRY_URI_REGEX, ELASTIC_CONTAINER_REGISTRY_URI_REGEX, GCP_ARTIFACT_REGISTRY_URI_REGEX, LAUNCH_CONFIG_FILE, LOG_PREFIX, event_loop_thread_exec, resolve_build_and_registry_config
label_desc: Use image node_id 16 for calling a global function with example usage: _inject_wandb_config_env_vars(config, env_dict, maximum_env_length) without return types