class_docstr: A single queued run associated with an entity and project. Call `run = queued_run.wait_until_running()` or `run = queued_run.wait_until_finished()` to access the run.
class_docstr_tok: ["A","single","queued","run","associated","with","an","entity","and","project",".","Call","`","run","=","queued_run.wait_until_running","(",")","`","or","`","run","=","queued_run.wait_until_finished","(",")","`","to","access","the","run","."]
code: def _get_run_queue_item_legacy(self) -> Dict:
      query = gql(
          """
              query GetRunQueueItem($projectName: String!, $entityName: String!, $runQueue: String!) {
                  project(name: $projectName, entityName: $entityName) {
                      runQueue(name:$runQueue) {
                          runQueueItems {
                              edges {
                                  node {
                                      id
                                      state
                                      associatedRunId
                                  }
                              }
                          }
                      }
                  }
              }
              """
      )
      variable_values = {
          "projectName": self.project_queue,
          "entityName": self._entity,
          "runQueue": self.queue_name,
      }
      res = self.client.execute(query, variable_values)
  
      for item in res["project"]["runQueue"]["runQueueItems"]["edges"]:
          if str(item["node"]["id"]) == str(self.id):
              return item["node"]
  
imports: import json
  import os
  import shutil
  import sys
  import time
  from typing import TYPE_CHECKING, Any, Dict, List, Mapping, Optional
  from wandb_gql import gql
  import wandb
  from wandb import util
  from wandb.apis import public
  from wandb.apis.normalize import normalize_exceptions
  from wandb.errors import CommError
  from wandb.sdk.artifacts.artifact_state import ArtifactState
  from wandb.sdk.data_types._dtypes import InvalidType, Type, TypeRegistry
  from wandb.sdk.launch.errors import LaunchError
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT, _fetch_git_repo, apply_patch, convert_jupyter_notebook_to_script
label_desc: Use image node_id 7 for calling the QueuedRun obj's underlying member method code with example usage: obj._get_run_queue_item_legacy() and returns: item