Return the element the refobj represents.

        The element is either an Asset or a Shot.

        :param refobj: the refobject to query
        :type refobj: refobj
        :returns: The element the reftrack represents
        :rtype: :class:`jukeboxcore.djadapter.models.Asset` | :class:`jukeboxcore.djadapter.models.Shot`
        :raises: None

def get_element(self, refobj):
        """Return the element the refobj represents.

        The element is either an Asset or a Shot.

        :param refobj: the refobject to query
        :type refobj: refobj
        :returns: The element the reftrack represents
        :rtype: :class:`jukeboxcore.djadapter.models.Asset` | :class:`jukeboxcore.djadapter.models.Shot`
        :raises: None
        """
        tf = self.get_taskfile(refobj)
        return tf.task.element