def METHOD_NAME(methodname):
    """
    Determine what FlowByActivities are used to generate a FlowBySector
    :param methodname: string, FlowBySector method
    :return: list, pairs of FlowByActivity source names and years
    """
    sources = []
    # load the fbs method yaml
    fbs_yaml = load_yaml_dict(methodname, flowbytype='FBS')
    # create list of data and allocation data sets
    fbs = fbs_yaml['source_names']
    for fbs_k, fbs_v in fbs.items():
        try:
            sources.append([fbs_k, fbs_v['year']])
        except KeyError:
            log.info('Could not append %s to datasource '
                     'list because missing year', fbs_k)
            continue
        activities = fbs_v['activity_sets']
        for aset, attr in activities.items():
            if attr['allocation_source'] != 'None':
                sources.append([attr['allocation_source'],
                                attr['allocation_source_year']])
            if 'helper_source' in attr:
                sources.append([attr['helper_source'],
                                attr['helper_source_year']])
            if 'literature_sources' in attr:
                for source, date in attr['literature_sources'].items():
                    sources.append([source, date])
    # load any additional fbas that are called in a fbs method within fxns
    try:
        fbas = load_fbs_methods_additional_fbas_config()[methodname]
        for s, acts_info in fbas.items():
            for acts, fxn_info in acts_info.items():
                for fxn, fba_info in fxn_info.items():
                    for fba, y in fba_info.items():
                        fxn_config = \
                            load_functions_loading_fbas_config()[fxn][fba]
                        sources.append([fxn_config['source'], y])
    except KeyError:
        # if no additional fbas than pass
        log.info(f'There are no additional Flow-By-Activities '
                 'used in generating %s', methodname)
        pass
    return sources