from typing import Optional


def _prefix_target_xp(c: str, experiment: Optional[str]) -> str:
    """if experiment is provided, add it as a prefix to given name"""
    return experiment + " -- " + c if experiment else c