docstr: Returns a list of scheduled Lightly Worker runs with the current dataset.
  
  Args:
      state:
          DockerRunScheduledState value. If specified, then only runs in the given
          state are returned. If omitted, then runs which have not yet finished
          (neither 'DONE' nor 'CANCELED') are returned. Valid states are 'OPEN',
          'LOCKED', 'DONE', and 'CANCELED'.
  
  Returns:
      A list of scheduled Lightly Worker runs.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>> client.get_scheduled_compute_worker_runs(state="OPEN")
      [{'config_id': '646f34608a5613b57d8b73cc',
       'created_at': 1685009508254,
       'dataset_id': '6470a36361e9ce68180a6531',
       'id': '646f338a8a5613b57d8b73a1',
       'last_modified_at': 1685009542667,
       'owner': '643d050b8bcb91967ded65df',
       'priority': 'MID',
       'runs_on': ['worker-label'],
       'state': 'OPEN'}]
docstr_tok: ["Returns","a","list","of","scheduled","Lightly","Worker","runs","with","the","current","dataset",".","Args",":","state",":","DockerRunScheduledState","value",".","If","specified",",","then","only","runs","in","the","given","state","are","returned",".","If","omitted",",","then","runs","which","have","not","yet","finished","(","neither","'DONE","'","nor","'CANCELED","'",")","are","returned",".","Valid","states","are","'OPEN","'",",","'LOCKED","'",",","'DONE","'",",","and","'CANCELED","'",".","Returns",":","A","list","of","scheduled","Lightly","Worker","runs",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">","client.get_scheduled_compute_worker_runs","(","state=","''","OPEN","''",")","[","{","'config_id","'",":","'646f34608a5613b57d8b73cc","'",",","'created_at","'",":","1685009508254",",","'dataset_id","'",":","'6470a36361e9ce68180a6531","'",",","'id","'",":","'646f338a8a5613b57d8b73a1","'",",","'last_modified_at","'",":","1685009542667",",","'owner","'",":","'643d050b8bcb91967ded65df","'",",","'priority","'",":","'MID","'",",","'runs_on","'",":","[","'worker-label","'","]",",","'state","'",":","'OPEN","'","}","]"]
code: def get_scheduled_compute_worker_runs(
      self,
      state: Optional[str] = None,
  ) -> List[DockerRunScheduledData]:
      """Returns a list of scheduled Lightly Worker runs with the current dataset.
  
      Args:
          state:
              DockerRunScheduledState value. If specified, then only runs in the given
              state are returned. If omitted, then runs which have not yet finished
              (neither 'DONE' nor 'CANCELED') are returned. Valid states are 'OPEN',
              'LOCKED', 'DONE', and 'CANCELED'.
  
      Returns:
          A list of scheduled Lightly Worker runs.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>> client.get_scheduled_compute_worker_runs(state="OPEN")
          [{'config_id': '646f34608a5613b57d8b73cc',
           'created_at': 1685009508254,
           'dataset_id': '6470a36361e9ce68180a6531',
           'id': '646f338a8a5613b57d8b73a1',
           'last_modified_at': 1685009542667,
           'owner': '643d050b8bcb91967ded65df',
           'priority': 'MID',
           'runs_on': ['worker-label'],
           'state': 'OPEN'}]
      """
      if state is not None:
          return self._compute_worker_api.get_docker_runs_scheduled_by_dataset_id(
              dataset_id=self.dataset_id,
              state=state,
          )
      return self._compute_worker_api.get_docker_runs_scheduled_by_dataset_id(
          dataset_id=self.dataset_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 11 for calling the _ComputeWorkerMixin obj's underlying member method code with example usage: obj.get_scheduled_compute_worker_runs(state) and returns: self, self