def _name_from_project_path(path, project, template):
    if isinstance(template, str):
        template = re.compile(template)

    match = template.match(path)

    if not match:
        raise ValueError('path "%s" did not match expected pattern "%s"' % (
            path, template.pattern,))

    found_project = match.group('project')
    if found_project != project:
        raise ValueError(
            'Project from client (%s) should agree with '
            'project from resource(%s).' % (project, found_project))

    return match.group('name')
Gets and sets the composers
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/_helpers.py/_name_from_project_path--crossover with--dataset/ETHPy150Open OneDrive/onedrive-sdk-python/src/onedrivesdk/model/audio.py/Audio.composers