code: def encode(self, obj):
          '''Encodes a given object to an ARFF file.
  
          :param obj: the object containing the ARFF information.
          :return: the ARFF file as an unicode string.
          '''
          data = [row for row in self.iter_encode(obj)]
  
          return u'\n'.join(dataf encode(self, obj):
          '''Encodes a given object to an ARFF file.
  
          :param obj: the object containing the ARFF information.
          :return: the ARFF file as an unicode string.
          '''
          data = [row for row in self.iter_encode(obj)]
  
          return u'\n'.join(data)
docs: Encodes a given object to an ARFF file.
  
          :param obj: the object containing the ARFF information.
          :return: the ARFF file as an unicode string.