def get_meta(project_id, from_server=False):
    if ((from_server is True) or (project_id not in g.project2meta)):
        meta_json = g.spawn_api.project.get_meta(project_id)
        meta = sly.ProjectMeta.from_json(meta_json)
        g.project2meta[project_id] = meta
    else:
        meta = g.project2meta[project_id]
    return meta
def get_meta(project_id, from_server=False):
    if ((from_server is True) or (project_id not in g.project2meta)):
        meta_json = g.spawn_api.project.get_meta(project_id)
        meta = sly.ProjectMeta.from_json(meta_json)
        g.project2meta[project_id] = meta
    else:
        meta = g.project2meta[project_id]
    return meta