code: def reftrack_element_data(rt, role):
      
      element = rt.get_element()
      if element is None:
          return
      if role == QtCore.Qt.DisplayRole or role == QtCore.Qt.EditRole:
          return element.name
docs: Return the data for the element (e.g. the Asset or Shot)
  
      :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data
      :type rt: :class:`jukeboxcore.reftrack.Reftrack`
      :param role: item data role
      :type role: QtCore.Qt.ItemDataRole
      :returns: data for the element
      :rtype: depending on role
      :raises: None