class_docstr: PredictionSingletonBase
class_docstr_tok: ["PredictionSingletonBase"]
docstr: Returns the discriminator value (object type) of the data
docstr_tok: ["Returns","the","discriminator","value","(","object","type",")","of","the","data"]
code: def get_discriminator_value(cls, obj: dict) -> str:
      """Returns the discriminator value (object type) of the data"""
      discriminator_value = obj[cls.__discriminator_property_name]
      if discriminator_value:
          return cls.__discriminator_value_class_map.get(
              discriminator_value
          )
      else:
          return None
  
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 4 for calling the PredictionSingletonBase obj's underlying member method code with example usage: obj.get_discriminator_value(cls, obj) and returns: cls, None