def remove_from_object(project_id, figure_id, tag_name, tag_id):
    project_meta = get_meta(project_id)
    project_tag_meta: sly.TagMeta = project_meta.get_tag_meta(tag_name)
    if (project_tag_meta is None):
        raise RuntimeError(f'Tag {tag_name} not found in project meta')
    g.api.advanced.remove_tag_from_object(project_tag_meta.sly_id, figure_id, tag_id)
def remove_from_object(project_id, figure_id, tag_name, tag_id):
    project_meta = get_meta(project_id)
    project_tag_meta: sly.TagMeta = project_meta.get_tag_meta(tag_name)
    if (project_tag_meta is None):
        raise RuntimeError(f'Tag {tag_name} not found in project meta')
    g.api.advanced.remove_tag_from_object(project_tag_meta.sly_id, figure_id, tag_id)