code: def test_ray_start_default_port_conflict(
      call_ray_stop_only, shutdown_only
  ):
      subprocess.check_call(["ray", "start", "--head"])
      ray.init(address="auto")
      assert (
          str(ray_constants.DEFAULT_DASHBOARD_PORT)
          in ray._private.worker.get_dashboard_url()
      )
  
      error_raised = False
      try:
          subprocess.check_output(
              [
                  "ray",
                  "start",
                  "--head",
                  "--port",
                  "9999",  # use a different gcs port
                  "--include-dashboard=True",
              ],
              stderr=subprocess.PIPE,
          )
      except subprocess.CalledProcessError as e:
          assert b"already occupied" in e.stderr
          error_raised = True
  
      assert error_raised, "ray start should cause a conflict error"
  
imports: import os
  import re
  import subprocess
  import sys
  import time
  import psutil
  import pytest
  import requests
  import ray
  from ray._private import ray_constants
  from ray._private.test_utils import run_string_as_driver, wait_for_condition
label_desc: Use image node_id 2 for calling a global function with example usage: test_ray_start_default_port_conflict(call_ray_stop_only, shutdown_only) without return types