code: def uniqueName(self, name):
          
          try:
              suffix = self.name_suffixes[name]
          except KeyError:
              self.name_suffixes[name] = 0
              return name
  
          suffix += 1
          self.name_suffixes[name] = suffix
  
          return "%s%i" % (name, suffix)
docs: UIParser.uniqueName(string) -> string
  
          Create a unique name from a string.
          >>> p = UIParser(QtCore, QtGui, QtWidgets)
          >>> p.uniqueName("foo")
          'foo'
          >>> p.uniqueName("foo")
          'foo1'