class_docstr: docker run configurations, keys should match the structure of https://github.com/lightly-ai/lightly-core/blob/develop/onprem-docker/lightly_worker/src/lightly_worker/resources/docker/docker.yaml 
class_docstr_tok: ["docker","run","configurations",",","keys","should","match","the","structure","of","https",":","\/\/github.com\/lightly-ai\/lightly-core\/blob\/develop\/onprem-docker\/lightly_worker\/src\/lightly_worker\/resources\/docker\/docker.yaml"]
docstr: Create an instance of DockerWorkerConfigV3Docker from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV3Docker","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerWorkerConfigV3Docker:
      """Create an instance of DockerWorkerConfigV3Docker from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerWorkerConfigV3Docker.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in DockerWorkerConfigV3Docker) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV3Docker.parse_obj(
          {
              "checkpoint": obj.get("checkpoint"),
              "checkpoint_run_id": obj.get("checkpointRunId"),
              "corruptness_check": DockerWorkerConfigV3DockerCorruptnessCheck.from_dict(
                  obj.get("corruptnessCheck")
              )
              if obj.get("corruptnessCheck") is not None
              else None,
              "datasource": DockerWorkerConfigV3DockerDatasource.from_dict(
                  obj.get("datasource")
              )
              if obj.get("datasource") is not None
              else None,
              "embeddings": obj.get("embeddings"),
              "enable_training": obj.get("enableTraining"),
              "training": DockerWorkerConfigV3DockerTraining.from_dict(
                  obj.get("training")
              )
              if obj.get("training") is not None
              else None,
              "normalize_embeddings": obj.get("normalizeEmbeddings"),
              "num_processes": obj.get("numProcesses"),
              "num_threads": obj.get("numThreads"),
              "output_image_format": obj.get("outputImageFormat"),
              "pretagging": obj.get("pretagging"),
              "pretagging_upload": obj.get("pretaggingUpload"),
              "relevant_filenames_file": obj.get(
                  "relevantFilenamesFile"
              ),
              "selected_sequence_length": obj.get(
                  "selectedSequenceLength"
              ),
              "upload_report": obj.get("uploadReport"),
              "shutdown_when_job_finished": obj.get(
                  "shutdownWhenJobFinished"
              ),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_docker.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictBool, StrictStr, conint, constr, validator
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_docker_corruptness_check import DockerWorkerConfigV3DockerCorruptnessCheck
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_docker_datasource import DockerWorkerConfigV3DockerDatasource
  from lightly.openapi_generated.swagger_client.models.docker_worker_config_v3_docker_training import DockerWorkerConfigV3DockerTraining
label_desc: Use image node_id 6 for calling the DockerWorkerConfigV3Docker obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV3Docker