code: def convert_configmap_to_volume(
      configmap_info: dict[str, str],
  ) -> tuple[list[k8s.V1Volume], list[k8s.V1VolumeMount]]:
      """
      Converts a dictionary of config_map_name and mount_path into k8s volume mount object and k8s volume.
  
      :param configmap_info: a dictionary of {config_map_name: mount_path}
      :return:
      """
      volume_mounts = []
      volumes = []
      for config_name, mount_path in configmap_info.items():
          volume_mounts.append(
              k8s.V1VolumeMount(mount_path=mount_path, name=config_name)
          )
          volumes.append(
              k8s.V1Volume(
                  name=config_name,
                  config_map=k8s.V1ConfigMapVolumeSource(
                      name=config_name
                  ),
              )
          )
  
      return volumes, volume_mounts
  
imports: from __future__ import annotations
  from kubernetes.client import models
label_desc: Use image node_id 2 for calling a global function with example usage: convert_configmap_to_volume(configmap_info) and returns: volumes,  volume_mounts