class_docstr: Images that expire in less than the specified number of days are handled specially. Given the handling strategy, these images are either skipped or the worker breaks if encountering any of them. 
class_docstr_tok: ["Images","that","expire","in","less","than","the","specified","number","of","days","are","handled","specially",".","Given","the","handling","strategy",",","these","images","are","either","skipped","or","the","worker","breaks","if","encountering","any","of","them","."]
docstr: Create an instance of DockerWorkerConfigV3DatasourceInputExpiration from a dict
docstr_tok: ["Create","an","instance","of","DockerWorkerConfigV3DatasourceInputExpiration","from","a","dict"]
code: def from_dict(
      cls, obj: dict
  ) -> DockerWorkerConfigV3DatasourceInputExpiration:
      """Create an instance of DockerWorkerConfigV3DatasourceInputExpiration from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return (
              DockerWorkerConfigV3DatasourceInputExpiration.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 DockerWorkerConfigV3DatasourceInputExpiration) in the input: "
                  + str(obj)
              )
  
      _obj = DockerWorkerConfigV3DatasourceInputExpiration.parse_obj(
          {
              "min_days_to_expiration": obj.get("minDaysToExpiration"),
              "handling_strategy": obj.get("handlingStrategy"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_datasource_input_expiration.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Union
  from pydantic import Extra, BaseModel, Field, confloat, conint
  from lightly.openapi_generated.swagger_client.models.expiry_handling_strategy_v3 import ExpiryHandlingStrategyV3
label_desc: Use image node_id 5 for calling the DockerWorkerConfigV3DatasourceInputExpiration obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DockerWorkerConfigV3DatasourceInputExpiration