code: def RECORD(key: str, value: Any, *, final: bool = True) -> str:
      if final:
          return f"Bokeh._testing.record({key!r}, {value});"
      else:
          return f"Bokeh._testing.record0({key!r}, {value});"
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Sequence
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  from bokeh.models import Button
label_desc: Use image node_id 7 for calling a global function with example usage: RECORD(key, value) and returns: str, key, str, value, str, str, key, str, value, str