code: def test_http_proxy(start_http_proxy, shutdown_only):
      # C++ config `grpc_enable_http_proxy` only initializes once, so we have to
      # run driver as a separate process to make sure the correct config value
      # is initialized.
      script = """
  import ray
  
  ray.init(num_cpus=1)
  
  @ray.remote
  def f():
      return 1
  
  assert ray.get(f.remote()) == 1
  """
  
      env = start_http_proxy
      run_string_as_driver(script, dict(os.environ, **env))
  
imports: import logging
  import os
  import pickle
  import random
  import sys
  import time
  import pytest
  import ray
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, client_test_enabled, get_error_message, run_string_as_driver
label_desc: Use image node_id 1 for calling a global function with example usage: test_http_proxy(start_http_proxy, shutdown_only) without return types