def METHOD_NAME(self, item, work_info):
    """Given the parent work info dict, fetch parent_composer,
    parent_composer_sort, parentwork, parentwork_disambig, mb_workid and
    composer_ids.
    """
    parent_composer = []
    parent_composer_sort = []
    parentwork_info = {}
    composer_exists = False
    if 'artist-relation-list' in work_info['work']:
        for artist in work_info['work']['artist-relation-list']:
            if artist['type'] == 'composer':
                composer_exists = True
                parent_composer.append(artist['artist']['name'])
                parent_composer_sort.append(artist['artist']['sort-name'])
                if 'end' in artist.keys():
                    parentwork_info["parentwork_date"] = artist['end']
        parentwork_info['parent_composer'] = ', '.join(parent_composer)
        parentwork_info['parent_composer_sort'] = ', '.join(
                parent_composer_sort)
    if not composer_exists:
        self._log.debug(
            'no composer for {}; add one at '
            'https://musicbrainz.org/work/{}',
            item, work_info['work']['id'],
        )
    parentwork_info['parentwork'] = work_info['work']['title']
    parentwork_info['mb_parentworkid'] = work_info['work']['id']
    if 'disambiguation' in work_info['work']:
        parentwork_info['parentwork_disambig'] = work_info[
                'work']['disambiguation']
    else:
        parentwork_info['parentwork_disambig'] = None
    return parentwork_info