code: def taskfileinfo_element_data(tfi, role):
      
      task = tfi.task
      element = task.element
      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 tfi: the :class:`jukeboxcore.filesys.TaskFileInfo` holds the data
      :type tfi: :class:`jukeboxcore.filesys.TaskFileInfo`
      :param role: item data role
      :type role: QtCore.Qt.ItemDataRole
      :returns: data for the element
      :rtype: depending on role
      :raises: None