code: def _repr_name(self):
          
          names = {"name", "attrname"}
          if all(name not in self._astroid_fields for name in names):
              return getattr(self, "name", getattr(self, "attrname", ""))
          return ""
docs: Get a name for nice representation.
  
          This is either :attr:`name`, :attr:`attrname`, or the empty string.
  
          :returns: The nice name.
          :rtype: str