code: def get_unique_name(self, prefix):
          '''Returns an index-suffixed unique name for the given prefix.
          This is used for auto-generating layer names based on the type-prefix.
          '''
          ident = sum(t.startswith(prefix) for t, _ in self.layers.items()) + 1
          return '%s_%d' % (prefix, identf get_unique_name(self, prefix):
          '''Returns an index-suffixed unique name for the given prefix.
          This is used for auto-generating layer names based on the type-prefix.
          '''
          ident = sum(t.startswith(prefix) for t, _ in self.layers.items()) + 1
          return '%s_%d' % (prefix, ident)
docs: Returns an index-suffixed unique name for the given prefix.
          This is used for auto-generating layer names based on the type-prefix.