def METHOD_NAME(n_features, n_args, interaction_only):
    """Get the combinations of features to be passed to a library function."""
    comb = combinations if interaction_only else combinations_w_r
    return comb(range(n_features), n_args)