class_docstr: An expectation for checking if an element has finished resizing
  
      
class_docstr_tok: ["An","expectation","for","checking","if","an","element","has","finished","resizing"]
code: def __call__(self, driver: WebDriver) -> bool:
      current_width = self.element.size["width"]
      if self.previous_width == current_width:
          return True
      else:
          self.previous_width = current_width
          return False
  
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 2 for calling the element_to_finish_resizing obj's underlying member method code with example usage: obj.__call__(driver) and returns: True, False