class_docstr: PredictionSingleton
docstr: Returns the string representation of the actual instance
docstr_tok: ["Returns","the","string","representation","of","the","actual","instance"]
code: def to_str(self, by_alias: bool = False) -> str:
      """Returns the string representation of the actual instance"""
      return pprint.pformat(self.dict(by_alias=by_alias))
  
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 7 for calling the PredictionSingleton obj's underlying member method code with example usage: obj.to_str(by_alias) and returns: pprint