class_docstr: It represents the relationship between two items.
class_docstr_tok: ["It","represents","the","relationship","between","two","items","."]
code: def __init__(self, id1, id2, label, bigdl_type="float"):
      self.id1 = id1
      self.id2 = id2
      self.label = int(label)
      self.bigdl_type = bigdl_type
  
imports: from bigdl.util.common import *
  from zoo.common.utils import callZooFunc
  from bigdl.dataset.dataset import DataSet
  from pyspark.serializers import CloudPickleSerializer
  import sys
  import math
  import warnings
label_desc: Use image node_id 1 to create a new Relation object from inherited base classes: object with example: obj = Relation(id1, id2, label, bigdl_type)