class_docstr: DockerWorkerConfigV2LightlyCollate
class_docstr_tok: ["DockerWorkerConfigV2LightlyCollate"]
docstr: Create an instance of DockerWorkerConfigV2LightlyCollate from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV2LightlyCollate","from","a","dict"]
code: def from_dict(cls, obj: dict) -> DockerWorkerConfigV2LightlyCollate:
      """Create an instance of DockerWorkerConfigV2LightlyCollate from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DockerWorkerConfigV2LightlyCollate.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 DockerWorkerConfigV2LightlyCollate) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV2LightlyCollate.parse_obj(
          {
              "input_size": obj.get("inputSize"),
              "cj_prob": obj.get("cjProb"),
              "cj_bright": obj.get("cjBright"),
              "cj_contrast": obj.get("cjContrast"),
              "cj_sat": obj.get("cjSat"),
              "cj_hue": obj.get("cjHue"),
              "min_scale": obj.get("minScale"),
              "random_gray_scale": obj.get("randomGrayScale"),
              "gaussian_blur": obj.get("gaussianBlur"),
              "kernel_size": obj.get("kernelSize"),
              "sigmas": obj.get("sigmas"),
              "vf_prob": obj.get("vfProb"),
              "hf_prob": obj.get("hfProb"),
              "rr_prob": obj.get("rrProb"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v2_lightly_collate.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional, Union
  from pydantic import Extra, BaseModel, Field, confloat, conint, conlist
label_desc: Use image node_id 5 for calling the DockerWorkerConfigV2LightlyCollate obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV2LightlyCollate