class_docstr: The datasource purpose and for which use-cases it is needed. - INPUT_OUTPUT: Is used as source of raw data and predictions/metadata within .lightly as well as destination for writing thumbnails, crops or video frame within .lightly - INPUT: Is only used as source of raw data - LIGHTLY: Is used as source of predictions/metadata within .lightly as well as destination for writing thumbnails, crops or video frames within .lightly 
docstr: Create an instance of DatasourcePurpose from a JSON string
code: def from_json(cls, json_str: str) -> "DatasourcePurpose":
      """Create an instance of DatasourcePurpose from a JSON string"""
      return DatasourcePurpose(json.loads(json_str))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_purpose.py
imports: import json
  import pprint
  import re
  from enum import Enum
  from aenum import no_arg
label_desc: Use image node_id 1 for calling the DatasourcePurpose obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: DatasourcePurpose