code: def test_push_to_runqueue_old_server(
      relay_server,
      user,
      monkeypatch,
      mocked_fetchable_git_repo,
      test_settings,
      wandb_init,
  ):
      proj = "test_project0"
      queue = "existing-queue"
      uri = "https://github.com/FooBar/examples.git"
      entry_point = ["python", "train.py"]
      args = {
          "uri": uri,
          "project": proj,
          "entity": user,
          "queue": "default",
          "entry_point": entry_point,
          "resource": "local-process",
      }
      settings = test_settings({"project": LAUNCH_DEFAULT_PROJECT})
  
      monkeypatch.setattr(
          "wandb.sdk.internal.internal_api.Api.push_to_run_queue_by_name",
          lambda *args: None,
      )
  
      with relay_server():
          run = wandb_init(settings=settings)
          api = wandb.sdk.internal.internal_api.Api()
  
          api.create_run_queue(
              entity=user,
              project=LAUNCH_DEFAULT_PROJECT,
              queue_name=queue,
              access="USER",
          )
  
          result = api.push_to_run_queue(
              queue, args, None, LAUNCH_DEFAULT_PROJECT
          )
          run.finish()
  
          assert result["runQueueItemId"]
  
imports: import json
  import os
  from unittest import mock
  import pytest
  import wandb
  from wandb.apis.public import Api
  from wandb.sdk.internal.internal_api import Api
  from wandb.sdk.internal.internal_api import UnsupportedError
  from wandb.sdk.launch._launch_add import launch_add
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT, LaunchError
label_desc: Use image node_id 8 for calling a global function with example usage: test_push_to_runqueue_old_server(relay_server, user, monkeypatch, mocked_fetchable_git_repo, test_settings, wandb_init) without return types