code: def __init__(
      self,
      url: str,
      digest: str,
      window_size: WindowSize | None = None,
      thumb_size: WindowSize | None = None,
  ):
      # Chart reports are in standalone="true" mode
      url = modify_url_query(
          url,
          standalone=ChartStandaloneMode.HIDE_NAV.value,
      )
      super().__init__(url, digest)
      self.window_size = window_size or DEFAULT_CHART_WINDOW_SIZE
      self.thumb_size = thumb_size or DEFAULT_CHART_THUMBNAIL_SIZE
  
imports: from __future__ import annotations
  import logging
  from io import BytesIO
  from typing import TYPE_CHECKING
  from flask import current_app
  from superset import feature_flag_manager
  from superset.utils.hashing import md5_sha_from_dict
  from superset.utils.urls import modify_url_query
  from superset.utils.webdriver import ChartStandaloneMode, DashboardStandaloneMode, WebDriver, WebDriverPlaywright, WebDriverSelenium, WindowSize
label_desc: Use image node_id 1 to create a new ChartScreenshot object from inherited base classes: BaseScreenshot with example: obj = ChartScreenshot(url, digest, window_size, thumb_size)