code: def convert_configmap(configmaps) -> k8s.V1EnvFromSource:
      """
      Convert a str into an k8s.V1EnvFromSource.
  
      :param configmaps:
      """
      return k8s.V1EnvFromSource(
          config_map_ref=k8s.V1ConfigMapEnvSource(name=configmaps)
      )
  
file_path: airflow/airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py
imports: from __future__ import annotations
  from kubernetes.client import ApiClient, models
  from airflow.exceptions import AirflowException
label_desc: Use image node_id 9 for calling a global function with example usage: convert_configmap(configmaps) and returns: k8s