code: def to_unicode(self, omit_final_dot = False):
          
  
          if len(self.labels) == 0:
              return u'@'
          if len(self.labels) == 1 and self.labels[0] == '':
              return u'.'
          if omit_final_dot and self.is_absolute():
              l = self.labels[:-1]
          else:
              l = self.labels
          s = u'.'.join([encodings.idna.ToUnicode(_escapify(x)) for x in l])
          return s
docs: Convert name to Unicode text format.
  
          IDN ACE lables are converted to Unicode.
  
          @param omit_final_dot: If True, don't emit the final dot (denoting the
          root label) for absolute names.  The default is False.
          @rtype: string