docstr: Method: update the template with customized configs
  Params:
      configs: a dict type of configurations that describe the properties of milvus to be deployed
      template: Optional. Pass the template file location if there is a template to apply
  Return: a dict type customized configs
docstr_tok: ["Method",":","update","the","template","with","customized","configs","Params",":","configs",":","a","dict","type","of","configurations","that","describe","the","properties","of","milvus","to","be","deployed","template",":","Optional",".","Pass","the","template","file","location","if","there","is","a","template","to","apply","Return",":","a","dict","type","customized","configs"]
code: def _update_configs(configs, template=None):
      """
      Method: update the template with customized configs
      Params:
          configs: a dict type of configurations that describe the properties of milvus to be deployed
          template: Optional. Pass the template file location if there is a template to apply
      Return: a dict type customized configs
      """
      if not isinstance(configs, dict):
          log.error("customize configurations must be in dict type")
          return None
  
      if template is None:
          # d_configs = benedict()
          log.debug(f"template yaml {template_yaml}")
          d_configs = benedict.from_yaml(template_yaml)
          d_configs["apiVersion"] = f"{MILVUS_GRP}/{MILVUS_VER}"
          d_configs["kind"] = MILVUS_KIND
      else:
          d_configs = benedict.from_yaml(template)
  
      for key in configs.keys():
          d_configs[key] = configs[key]
  
      # return a python dict if it is not none
      return (
          d_configs._dict if d_configs._dict is not None else d_configs
      )
  
file_path: milvus/tests/python_client/customize/milvus_operator.py
imports: import json
  import os
  import time
  from benedict import benedict
  from utils.util_log import test_log
  from common.cus_resource_opts import CustomResourceOperations
label_desc: Use image node_id 2 for calling the MilvusOperator obj's underlying member method code with example usage: obj._update_configs(configs, template) and returns: unknown, None