def download_annotation_classes_json(project, folder):
    'Downloads project classes.json to folder\n\n    :param project: project name or metadata of the project\n    :type project: str or dict\n    :param folder: folder to download to\n    :type folder: Pathlike (str or Path)\n\n    :return: path of the download file\n    :rtype: str\n    '
    if (not isinstance(project, dict)):
        project = get_project_metadata(project)
    logger.info('Downloading classes.json from project %s to folder %s.', project['name'], folder)
    clss = search_annotation_classes(project, return_metadata=True)
    filepath = (Path(folder) / 'classes.json')
    json.dump(clss, open(filepath, 'w'), indent=4)
    return str(filepath)
Downloads project classes.json to folder

:param project: project name or metadata of the project
:type project: str or dict
:param folder: folder to download to
:type folder: Pathlike (str or Path)

:return: path of the download file
:rtype: str
def download_annotation_classes_json(project, folder):
    'Downloads project classes.json to folder\n\n    :param project: project name or metadata of the project\n    :type project: str or dict\n    :param folder: folder to download to\n    :type folder: Pathlike (str or Path)\n\n    :return: path of the download file\n    :rtype: str\n    '
    if (not isinstance(project, dict)):
        project = get_project_metadata(project)
    logger.info('Downloading classes.json from project %s to folder %s.', project['name'], folder)
    clss = search_annotation_classes(project, return_metadata=True)
    filepath = (Path(folder) / 'classes.json')
    json.dump(clss, open(filepath, 'w'), indent=4)
    return str(filepath)