code: def _get_deployment_with_device_plugins(
      deployment: Dict, params: Dict
  ) -> Dict:
      device_plugins = _get_device_plugins(params["device_plugins"])
  
      deployment["spec"]["template"]["spec"]["containers"][0][
          "resources"
      ] = device_plugins
      return deployment
  
file_path: jina/jina/orchestrate/deployments/config/k8slib/kubernetes_tools.py
imports: import os
  from typing import Dict
label_desc: Use image node_id 5 for calling a global function with example usage: _get_deployment_with_device_plugins(deployment, params) and returns: deployment