code: def update_item(
      table: str,
      item_id: str,
      updated_data: Dict[str, Any],
      dbmanager: DBManager,
  ) -> None:
      set_clause = ", ".join(
          [f"{key} = ?" for key in updated_data.keys()]
      )
      query = f"UPDATE {table} SET {set_clause} WHERE id = ?"
      args = (*updated_data.values(), item_id)
      dbmanager.query(query=query, args=args)
  
imports: import json
  import logging
  import sqlite3
  import threading
  import os
  from typing import Any, List, Dict, Optional, Tuple
  from ..datamodel import AgentFlowSpec, AgentWorkFlowConfig, Gallery, Message, Session, Skill
label_desc: Use image node_id 16 for calling a global function with example usage: update_item(table, item_id, updated_data, dbmanager) without return types