code: def test_runtime_env_with_pip_config(start_cluster):
      pip_versions = [
          (
              "==20.2.3",
              lambda pip_version: parse(pip_version) == parse("20.2.3"),
          ),
          (
              "<20.3, >19",
              lambda pip_version: parse("19")
              < parse(pip_version)
              < parse("20.3"),
          ),
      ]
  
      @ray.remote
      def f():
          import pip
  
          return pip.__version__
  
      for pip_version_tup in pip_versions:
          pip_version, check_func = pip_version_tup
          assert check_func(
              ray.get(
                  f.options(
                      runtime_env={
                          "pip": {
                              "packages": ["pip-install-test==0.5"],
                              "pip_version": pip_version,
                          }
                      }
                  ).remote()
              )
          )
  
imports: import sys
  import pytest
  from packaging.version import parse
  import ray
label_desc: Use image node_id 1 for calling a global function with example usage: test_runtime_env_with_pip_config(start_cluster) and returns: pip