def METHOD_NAME(self):
    """ Return the title if possible, else return the Sample type.
    Fall back on the instance's ID if there's no sample type or title.
    """
    if self.title:
        title = self.title
    else:
        title = self.getSampleTypeTitle() or ""
    return safe_unicode(title).encode('utf-8')