code: def __call__(self, driver):
      try:
          elem = driver.find_element(By.CSS_SELECTOR, self.selector)
          logger.debug(
              "contains text {%s} => expected %s", elem.text, self.text
          )
          return self.text in str(elem.text) or self.text in str(
              elem.get_attribute("value")
          )
      except WebDriverException:
          return False
  
imports: import time
  import logging
  from selenium.common.exceptions import WebDriverException
  from selenium.webdriver.common.by import By
  from dash.testing.errors import TestingTimeoutError
label_desc: Use image node_id 2 for calling the contains_text obj's underlying member method code with example usage: obj.__call__(driver) and returns: unknown, False