class_docstr: PredictionSingleton
code: def from_dict(cls, obj: dict) -> PredictionSingleton:
      return cls.from_json(json.dumps(obj))
  
imports: from __future__ import annotations
  from inspect import getfullargspec
  import json
  import pprint
  import re
  from typing import Any, List, Optional
  from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_classification import PredictionSingletonClassification
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_instance_segmentation import PredictionSingletonInstanceSegmentation
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_keypoint_detection import PredictionSingletonKeypointDetection
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_object_detection import PredictionSingletonObjectDetection
  from lightly.openapi_generated.swagger_client.models.prediction_singleton_semantic_segmentation import PredictionSingletonSemanticSegmentation
  from typing import Any, List
  from pydantic import StrictStr, Field, Extra
label_desc: Use image node_id 3 for calling the PredictionSingleton obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: cls