code: def __init__(self, definition: VariableDefinition):
      super(SetType, self).__init__(definition)
  
      if "corpus" not in definition:
          definition["corpus"] = []
  
      self.comparator = CosineSetSimilarity(definition["corpus"])
  
imports: from simplecosine.cosine import CosineSetSimilarity
  from dedupe import predicates
  from dedupe._typing import VariableDefinition
  from dedupe.variables.base import FieldType
label_desc: Use image node_id 1 to create a new SetType object from inherited base classes: FieldType with example: obj = SetType(definition)