docstr: Schedules a run with the given configurations.
  
  See our docs for more information regarding the different configurations:
  https://docs.lightly.ai/docs/all-configuration-options
  
  Args:
      worker_config:
          Lightly Worker configuration.
      lightly_config:
          Lightly configuration.
      selection_config:
          Selection configuration.
      runs_on:
          The required labels the Lightly Worker must have to take the job.
          See our docs for more information regarding the runs_on paramter:
          https://docs.lightly.ai/docs/assign-scheduled-runs-to-specific-workers
  
  Returns:
      The id of the scheduled run.
  
  Raises:
      ApiException:
          If the API call returns a status code other than 200.
              400: Missing or invalid parameters
              402: Insufficient plan
              403: Not authorized for this resource or invalid token
              404: Resource (dataset or config) not found
              422: Missing or invalid file in datasource
      InvalidConfigError:
          If one of the configurations is invalid.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>> selection_config = {...}
      >>> worker_labels = ["worker-label"]
      >>> run_id = client.schedule_compute_worker_run(
      ...     selection_config=selection_config, runs_on=worker_labels
      ... )
docstr_tok: ["Schedules","a","run","with","the","given","configurations",".","See","our","docs","for","more","information","regarding","the","different","configurations",":","https",":","\/\/docs.lightly.ai\/docs\/all-configuration-options","Args",":","worker_config",":","Lightly","Worker","configuration",".","lightly_config",":","Lightly","configuration",".","selection_config",":","Selection","configuration",".","runs_on",":","The","required","labels","the","Lightly","Worker","must","have","to","take","the","job",".","See","our","docs","for","more","information","regarding","the","runs_on","paramter",":","https",":","\/\/docs.lightly.ai\/docs\/assign-scheduled-runs-to-specific-workers","Returns",":","The","id","of","the","scheduled","run",".","Raises",":","ApiException",":","If","the","API","call","returns","a","status","code","other","than","200",".","400",":","Missing","or","invalid","parameters","402",":","Insufficient","plan","403",":","Not","authorized","for","this","resource","or","invalid","token","404",":","Resource","(","dataset","or","config",")","not","found","422",":","Missing","or","invalid","file","in","datasource","InvalidConfigError",":","If","one","of","the","configurations","is","invalid",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">","selection_config","=","{","...","}",">",">",">","worker_labels","=","[","``","worker-label","''","]",">",">",">","run_id","=","client.schedule_compute_worker_run","(","...","selection_config=selection_config",",","runs_on=worker_labels","...",")"]
code: def schedule_compute_worker_run(
      self,
      worker_config: Optional[Dict[str, Any]] = None,
      lightly_config: Optional[Dict[str, Any]] = None,
      selection_config: Optional[
          Union[Dict[str, Any], SelectionConfigV3]
      ] = None,
      priority: str = DockerRunScheduledPriority.MID,
      runs_on: Optional[List[str]] = None,
  ) -> str:
      """Schedules a run with the given configurations.
  
      See our docs for more information regarding the different configurations:
      https://docs.lightly.ai/docs/all-configuration-options
  
      Args:
          worker_config:
              Lightly Worker configuration.
          lightly_config:
              Lightly configuration.
          selection_config:
              Selection configuration.
          runs_on:
              The required labels the Lightly Worker must have to take the job.
              See our docs for more information regarding the runs_on paramter:
              https://docs.lightly.ai/docs/assign-scheduled-runs-to-specific-workers
  
      Returns:
          The id of the scheduled run.
  
      Raises:
          ApiException:
              If the API call returns a status code other than 200.
                  400: Missing or invalid parameters
                  402: Insufficient plan
                  403: Not authorized for this resource or invalid token
                  404: Resource (dataset or config) not found
                  422: Missing or invalid file in datasource
          InvalidConfigError:
              If one of the configurations is invalid.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>> selection_config = {...}
          >>> worker_labels = ["worker-label"]
          >>> run_id = client.schedule_compute_worker_run(
          ...     selection_config=selection_config, runs_on=worker_labels
          ... )
      """
      if runs_on is None:
          runs_on = []
      config_id = self.create_compute_worker_config(
          worker_config=worker_config,
          lightly_config=lightly_config,
          selection_config=selection_config,
      )
      request = DockerRunScheduledCreateRequest(
          config_id=config_id,
          priority=priority,
          runs_on=runs_on,
          creator=self._creator,
      )
      response = self._compute_worker_api.create_docker_run_scheduled_by_dataset_id(
          docker_run_scheduled_create_request=request,
          dataset_id=self.dataset_id,
      )
      return response.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 6 for calling the _ComputeWorkerMixin obj's underlying member method code with example usage: obj.schedule_compute_worker_run(worker_config, lightly_config, selection_config, priority, runs_on) and returns: response