code: def _get_deployment_with_image_pull_secrets(
      deployment: Dict, params: Dict
  ) -> Dict:
      image_pull_secrets = params["image_pull_secrets"]
      image_pull_secrets_dict = [
          {"name": secret} for secret in image_pull_secrets
      ]
      deployment["spec"]["template"]["spec"][
          "imagePullSecrets"
      ] = image_pull_secrets_dict
      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 7 for calling a global function with example usage: _get_deployment_with_image_pull_secrets(deployment, params) and returns: deployment