code: def _get_install_options(
      requirements_file: "Path", excludes: Tuple[str] = ("jina",)
  ):
      with requirements_file.open() as requirements:
          install_options = []
          install_reqs = []
          for req in requirements:
              req = req.strip()
              if (not req) or req.startswith("#"):
                  continue
              elif req.startswith("-"):
                  for index, item in enumerate(req.split(" ")):
                      install_options.append(
                          _expand_env_variables(item)
                      )
              else:
                  expand_req = _expand_env_variables(req)
                  req_spec = _parse_requirement(expand_req)
  
                  if (
                      req_spec.project_name not in excludes
                      or len(req_spec.extras) > 0
                  ):
                      install_reqs.append(expand_req)
      return install_reqs, install_options
  
file_path: jina/jina/orchestrate/deployments/install_requirements_helper.py
imports: import os
  import re
  from typing import TYPE_CHECKING, Tuple, Dict, Optional, cast
  from pkg_resources import Requirement
label_desc: Use image node_id 4 for calling a global function with example usage: _get_install_options(requirements_file, excludes) and returns: install_reqs,  install_options