class_docstr: Represents a (user, product, rating) tuple.
  
  .. versionadded:: 1.2.0
  
  Examples
  --------
  >>> r = Rating(1, 2, 5.0)
  >>> (r.user, r.product, r.rating)
  (1, 2, 5.0)
  >>> (r[0], r[1], r[2])
  (1, 2, 5.0)
code: def __reduce__(self) -> Tuple[Type["Rating"], Tuple[int, int, float]]:
      return Rating, (
          int(self.user),
          int(self.product),
          float(self.rating),
      )
  
imports: import array
  import sys
  from typing import Any, List, NamedTuple, Optional, Tuple, Type, Union
  from pyspark import SparkContext, since
  from pyspark.rdd import RDD
  from pyspark.mllib.common import JavaModelWrapper, callMLlibFunc, inherit_doc
  from pyspark.mllib.util import JavaLoader, JavaSaveable
  from pyspark.sql import DataFrame
label_desc: Use image node_id 1 for calling the Rating obj's underlying member method code with example usage: obj.__reduce__() and returns: Rating,  int,  int,  float