class_docstr: PredictionSingletonBase
class_docstr_tok: ["PredictionSingletonBase"]
docstr: Create an instance of PredictionSingletonBase from a JSON string
docstr_tok: ["Create","an","instance","of","PredictionSingletonBase","from","a","JSON","string"]
code: def from_json(
      cls, json_str: str
  ) -> Union(
      PredictionSingletonClassification,
      PredictionSingletonInstanceSegmentation,
      PredictionSingletonKeypointDetection,
      PredictionSingletonObjectDetection,
      PredictionSingletonSemanticSegmentation,
  ):
      """Create an instance of PredictionSingletonBase from a JSON string"""
      return cls.from_dict(json.loads(json_str))
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/prediction_singleton_base.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  import lightly.openapi_generated.swagger_client.models
  from typing import Optional, Union
  from pydantic import Extra, BaseModel, Field, StrictStr, confloat, conint, constr, validator
label_desc: Use image node_id 7 for calling the PredictionSingletonBase obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: cls