class_docstr: Abstract class for end-to-end tests of Mephisto-based crowdsourcing tasks.
  
  Allows for setup and teardown of the operator, as well as for config specification
  and agent registration.
class_docstr_tok: ["Abstract","class","for","end-to-end","tests","of","Mephisto-based","crowdsourcing","tasks",".","Allows","for","setup","and","teardown","of","the","operator",",","as","well","as","for","config","specification","and","agent","registration","."]
docstr: Get the LiveTaskRun from this job.
code: def _get_live_run(self):
      """
      Get the LiveTaskRun from this job.
      """
      live_runs = list(self.operator.get_running_task_runs().values())
      if len(live_runs) == 0:
          raise ValueError("No live runs present")
      return live_runs[0]
  
imports: import os
  import random
  import tempfile
  import time
  import unittest
  from typing import Any, Dict, List, Optional, Sequence, Union
  import numpy
  import torch
  from parlai.utils import logging
  from hydra.experimental import compose, initialize
  from mephisto.abstractions.blueprint import SharedTaskState
  from mephisto.abstractions.databases.local_database import LocalMephistoDB
  from mephisto.data_model.task_run import TaskRunArgs
  from mephisto.operations.operator import Operator
  from mephisto.tools.scripts import augment_config_from_db
  from mephisto.utils.metrics import InaccessiblePrometheusServer
  from pytest_regressions.data_regression import DataRegressionFixture
label_desc: Use image node_id 5 for calling the AbstractCrowdsourcingTest obj's underlying member method code with example usage: obj._get_live_run() and returns: live_runs