[docs]defget_yaml(template:str,params:Dict)->Dict:"""Create a resource on Kubernetes based on the `template`. It fills the `template` using the `params`. :param template: path to the template file. :param params: dictionary for replacing the placeholders (keys) with the actual values. :return: The yaml dictionary with the corresponding template filled with parameters """iftemplate=='configmap':yaml=_get_configmap_yaml(template,params)eliftemplateinDEPLOYMENT_FILESandparams.get('device_plugins'):yaml=_get_yaml(template,params)yaml=_get_deployment_with_device_plugins(yaml,params)else:yaml=_get_yaml(template,params)returnyaml