code: def push_to_queue(
      api: Api,
      queue_name: str,
      launch_spec: Dict[str, Any],
      template_variables: Optional[dict],
      project_queue: str,
      priority: Optional[int] = None,
  ) -> Any:
      return api.push_to_run_queue(
          queue_name,
          launch_spec,
          template_variables,
          project_queue,
          priority,
      )
  
file_path: wandb/wandb/sdk/launch/_launch_add.py
imports: import asyncio
  import pprint
  from typing import Any, Dict, List, Optional, Union
  import wandb
  import wandb.apis.public
  from wandb.apis.internal import Api
  from wandb.errors import CommError
  from wandb.sdk.launch._project_spec import create_project_from_spec
  from wandb.sdk.launch.builder.build import build_image_from_project
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT, LOG_PREFIX, construct_launch_spec, validate_launch_spec_source
label_desc: Use image node_id 1 for calling a global function with example usage: push_to_queue(api, queue_name, launch_spec, template_variables, project_queue, priority) and returns: api