class_docstr: When the filename is output, which format shall be used. E.g for a sample called 'frame0.png' that was uploaded from a datasource 's3://my_bucket/datasets/for_lightly/' in the folder 'car/green/' - NAME: car/green/frame0.png - DATASOURCE_FULL: s3://my_bucket/datasets/for_lightly/car/green/frame0.png - REDIRECTED_READ_URL: https://api.lightly.ai/v1/datasets/{datasetId}/samples/{sampleId}/readurlRedirect?publicToken={jsonWebToken}  
docstr: Create an instance of FileNameFormat from a JSON string
code: def from_json(cls, json_str: str) -> "FileNameFormat":
      """Create an instance of FileNameFormat from a JSON string"""
      return FileNameFormat(json.loads(json_str))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/file_name_format.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 FileNameFormat obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: FileNameFormat