code: def _create_cpu_image_specs(
      images: List[Config],
      base_img_cfg: Config,
      cpu_cfg: Config,
  ) -> Dict[str, ImageSpec]:
      specs = {}
      for b in _get_unique_cpu_bases(images):
          base = base_img_cfg[b.base_image]
          build_args = copy(cpu_cfg[b.python])
          build_args["BASE_IMAGE"] = base["BASE_IMAGE"]
  
          specs[b.tag] = ImageSpec(
              base_image=b.base_image,
              cpu_version=b.python,
              gpu_version=None,
              build_args=build_args,
          )
  
      return specs
  
imports: from absl import flags, app, logging
  from copy import copy
  from typing import Dict, List, Any, NamedTuple, Optional, Set
  from enum import Enum
  import json
  import pprint
label_desc: Use image node_id 5 for calling a global function with example usage: _create_cpu_image_specs(images, base_img_cfg, cpu_cfg) and returns: specs