def log_feature_task(experiment, feature_name, **kwargs):
    """Log a feature within a `prefect` flow.

    This `prefect` task can be used within a flow to
    log a feature to an existing experiment.

    Parameters
    ----------
    experiment : rubicon.client.Experiment
        The experiment to log a new feature to.
    feature_name : str
        The name of the feature to log. Passed to
        `Experiment.log_feature` as `name`.
    kwargs : dict
        Additional keyword arguments to be passed to
        `Experiment.log_feature`.

    Returns
    -------
    rubicon.client.Feature
        The logged feature.
    """
    return experiment.log_feature(feature_name, **kwargs)