code: def enter_text_in_element(
      driver: WebDriver,
      element: WebElement,
      text: str,
      click: int = 1,
      enter: bool = True,
      mod: _KeySeq | None = None,
  ) -> None:
      actions = ActionChains(driver)
      actions.move_to_element(element)
      if click == 1:
          actions.click()
      elif click == 2:
          actions.double_click()
      if enter:
          text += Keys.ENTER
      if mod:
          actions.key_down(mod)
      actions.send_keys(text)
      if mod:
          actions.key_up(mod)
      actions.perform()
  
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 12 for calling a global function with example usage: enter_text_in_element(driver, element, text, click, enter, mod) without return types