class_docstr: If specified, it tries to select samples such that their sum of inputs is >= min_sum and <= max_sum. Only compatible with the WEIGHTS strategy. 
class_docstr_tok: ["If","specified",",","it","tries","to","select","samples","such","that","their","sum","of","inputs","is",">","=","min_sum","and","<","=","max_sum",".","Only","compatible","with","the","WEIGHTS","strategy","."]
docstr: Create an instance of SelectionConfigV3EntryStrategyAllOfTargetRange from a dict
docstr_tok: ["Create","an","instance","of","SelectionConfigV3EntryStrategyAllOfTargetRange","from","a","dict"]
code: def from_dict(
      cls, obj: dict
  ) -> SelectionConfigV3EntryStrategyAllOfTargetRange:
      """Create an instance of SelectionConfigV3EntryStrategyAllOfTargetRange from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return (
              SelectionConfigV3EntryStrategyAllOfTargetRange.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 SelectionConfigV3EntryStrategyAllOfTargetRange) in the input: "
                  + str(obj)
              )
  
      _obj = SelectionConfigV3EntryStrategyAllOfTargetRange.parse_obj(
          {"min_sum": obj.get("minSum"), "max_sum": obj.get("maxSum")}
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/selection_config_v3_entry_strategy_all_of_target_range.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional, Union
  from pydantic import Extra, BaseModel, Field, confloat, conint
label_desc: Use image node_id 5 for calling the SelectionConfigV3EntryStrategyAllOfTargetRange obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, SelectionConfigV3EntryStrategyAllOfTargetRange