class_docstr: DockerTaskDescription
class_docstr_tok: ["DockerTaskDescription"]
docstr: Create an instance of DockerTaskDescription from a dict
docstr_tok: ["Create","an","instance","of","DockerTaskDescription","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerTaskDescription:
      """Create an instance of DockerTaskDescription from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerTaskDescription.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 DockerTaskDescription) in the input: "
                  + str(obj)
              )
  
      _obj = DockerTaskDescription.parse_obj(
          {
              "embeddings_filename": obj.get("embeddingsFilename"),
              "embeddings_hash": obj.get("embeddingsHash"),
              "method": obj.get("method"),
              "existing_selection_column_name": obj.get(
                  "existingSelectionColumnName"
              ),
              "active_learning_scores_column_name": obj.get(
                  "activeLearningScoresColumnName"
              ),
              "masked_out_column_name": obj.get("maskedOutColumnName"),
              "sampling_config": SamplingConfig.from_dict(
                  obj.get("samplingConfig")
              )
              if obj.get("samplingConfig") is not None
              else None,
              "n_data": obj.get("nData"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_task_description.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Union
  from pydantic import Extra, BaseModel, Field, StrictStr, confloat, conint
  from lightly.openapi_generated.swagger_client.models.sampling_config import SamplingConfig
  from lightly.openapi_generated.swagger_client.models.sampling_method import SamplingMethod
label_desc: Use image node_id 5 for calling the DockerTaskDescription obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerTaskDescription