def get_feature_name(cfg, data_source):
    """Get feature name for given data source.

    :param cfg: Configuration
    :type cfg: dict
    :param data_source: Data source
    :type data_source: DataSource
    :return: Feature name
    :rtype: str
    """
    for sh_input in cfg['sh_inputs']:
        if sh_input['data_source'] == data_source.name:
            if 'feature' in sh_input:
                return sh_input['feature']
            else:
                break

    return 'BANDS'