docstr: Returns the schedule run data given the id of the scheduled run.
  
  TODO (MALTE, 09/2022): Have a proper API endpoint for doing this.
  Args:
      scheduled_run_id:
          The ID with which the run was scheduled.
  
  Returns:
      Defails of the scheduled run.
docstr_tok: ["Returns","the","schedule","run","data","given","the","id","of","the","scheduled","run",".","TODO","(","MALTE",",","09\/2022",")",":","Have","a","proper","API","endpoint","for","doing","this",".","Args",":","scheduled_run_id",":","The","ID","with","which","the","run","was","scheduled",".","Returns",":","Defails","of","the","scheduled","run","."]
code: def _get_scheduled_run_by_id(
      self, scheduled_run_id: str
  ) -> DockerRunScheduledData:
      """Returns the schedule run data given the id of the scheduled run.
  
      TODO (MALTE, 09/2022): Have a proper API endpoint for doing this.
      Args:
          scheduled_run_id:
              The ID with which the run was scheduled.
  
      Returns:
          Defails of the scheduled run.
  
      """
      try:
          run: DockerRunScheduledData = next(
              run
              for run in utils.retry(
                  lambda: self._compute_worker_api.get_docker_runs_scheduled_by_dataset_id(
                      self.dataset_id
                  )
              )
              if run.id == scheduled_run_id
          )
          return run
      except StopIteration:
          raise ApiException(
              f"No scheduled run found for run with scheduled_run_id='{scheduled_run_id}'."
          )
  
imports: import copy
  import dataclasses
  import difflib
  import json
  import time
  from functools import partial
  from typing import Any, Callable, Dict, Iterator, List, Optional, Type, TypeVar, Union
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.api_client import ApiClient
  from lightly.openapi_generated.swagger_client.models import CreateDockerWorkerRegistryEntryRequest, DockerRunData, DockerRunScheduledCreateRequest, DockerRunScheduledData, DockerRunScheduledPriority, DockerRunScheduledState, DockerRunState, DockerWorkerConfigV3, DockerWorkerConfigV3CreateRequest, DockerWorkerConfigV3Docker, DockerWorkerConfigV3Lightly, DockerWorkerRegistryEntryData, DockerWorkerType, SelectionConfigV3, SelectionConfigV3Entry, SelectionConfigV3EntryInput, SelectionConfigV3EntryStrategy, TagData
  from lightly.openapi_generated.swagger_client.rest import ApiException
label_desc: Use image node_id 12 for calling the _ComputeWorkerMixin obj's underlying member method code with example usage: obj._get_scheduled_run_by_id(scheduled_run_id) and returns: run