def configuration_filename(feature_dir, proposed_splits, split, generalized):
    """Calculates configuration specific filenames.

    Args:
        feature_dir (`str`): directory of features wrt
            to dataset directory.
        proposed_splits (`bool`): whether using proposed splits.
        split (`str`): train split.
        generalized (`bool`): whether GZSL setting.

    Returns:
        `str` containing arguments in appropriate form.
    """
    return '{}{}_{}{}.pt'.format(
        feature_dir,
        ('_proposed_splits' if proposed_splits else ''),
        split,
        '_generalized' if generalized else '',
    )