

def copy_track(src, dst):
    tracks_dict = get_tracks_dict_raw()
    if (src not in tracks_dict['tracks']):
        error("Track '{0}' does not exist.".format(src), exit=True)
    if (src in tracks_dict['tracks']):
        error("Track '{0}' already exists.".format(dst), exit=True)
    tracks_dict['tracks'][dst] = copy.deepcopy(tracks_dict['tracks'][src])
    info("Saving '{0}' track.".format(dst))
    write_tracks_dict_raw(tracks_dict)

dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/config.py copy_track/VarMisuse@48/75 `dst`->`src`