docstr: Receive query as AST (abstract syntax tree) and act upon it somehow.
  
  Args:
      query (ASTNode): sql query represented as AST. Usually it should be ast.Update
  Returns:
      None
docstr_tok: ["Receive","query","as","AST","(","abstract","syntax","tree",")","and","act","upon","it","somehow",".","Args",":","query","(","ASTNode",")",":","sql","query","represented","as","AST",".","Usually","it","should","be","ast.Update","Returns",":","None"]
code: def update(self, query: ast.Update) -> None:
      """Receive query as AST (abstract syntax tree) and act upon it somehow.
  
      Args:
          query (ASTNode): sql query represented as AST. Usually it should be ast.Update
      Returns:
          None
      """
      conditions = extract_comparison_conditions(query.where)
      # Get page id from query
      _id = None
      for op, arg1, arg2 in conditions:
          if arg1 == "id" and op == "=":
              _id = arg2
          else:
              raise NotImplementedError
  
      data = {}
      for key, value in query.update_columns.items():
          if isinstance(value, Constant):
              if key == "components":
                  data[key] = json.loads(value.value)
              else:
                  data[key] = value.value
  
      if "components" in data and isinstance(data["components"], str):
          data["components"] = json.loads(data["components"])
  
      self.handler.call_instatus_api(
          endpoint=f"/v2/{_id}", method="PUT", json_data=data
      )
  
file_path: mindsdb/mindsdb/integrations/handlers/instatus_handler/instatus_tables.py
imports: from typing import List
  import pandas
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions
  from mindsdb_sql.parser.ast.select.constant import Constant
  import json
  import re
label_desc: Use image node_id 3 for calling the StatusPages obj's underlying member method code with example usage: obj.update(query) without return types