def METHOD_NAME(fpath):
    fpath = os.path.normpath(fpath)
    if not fpath.startswith(base_path):
        raise types.InvalidSampleFpath(
            f"Sample fpath does not start with '{base_path}': {fpath}")
    return "'{base_path}/%s'" % os.path.relpath(fpath, base_path)