code: def label_from_instance(self, obj):
          
          label = smart_text(obj)
          prefix = self.level_indicator * getattr(obj, obj._mptt_meta.level_attr)
          if prefix:
              return '%s %s' % (prefix, label)
          return label
docs: Create labels which represent the tree level of each node
          when generating option labels.