code: def _get_configmap_yaml(template: str, params: Dict):
      import yaml
  
      path = os.path.join(DEFAULT_RESOURCE_DIR, f"{template}.yml")
  
      with open(path, encoding="utf-8") as f:
          config_map = yaml.safe_load(f)
  
      config_map["metadata"]["name"] = (
          params.get("name") + "-" + "configmap"
      )
      config_map["metadata"]["namespace"] = params.get("namespace")
      if params.get("data"):
          for key, value in params["data"].items():
              config_map["data"][key] = str(value)
      return config_map
  
file_path: jina/jina/orchestrate/deployments/config/k8slib/kubernetes_tools.py
imports: import os
  from typing import Dict
label_desc: Use image node_id 3 for calling a global function with example usage: _get_configmap_yaml(template, params) and returns: config_map