def pathfor(fname, source, template, master, template_dir, master_dir):
    assert [template, master] in source

    if source == template:
        path = os.path.normpath(os.path.join(template_dir, fname))
    else:  # MASTER
        path = os.path.normpath(os.path.join(master_dir, fname))

    return path
dataset/ETHPy150Open rr326/servi/servi/config.py/pathfor/swapped operands of `in`