code: def test_get_screenshot_as_png_with_scale_factor_less_than_dpr__issue_8807(
      webdriver_with_scale_factor: WebDriver,
  ) -> None:
      div = Div(
          text="Something", styles=dict(width="100px", height="100px")
      )
      png = bie.get_screenshot_as_png(
          div, driver=webdriver_with_scale_factor, scale_factor=1.5
      )
      assert png.width == 150
  
imports: from __future__ import annotations
  import pytest
  import base64
  import re
  import sys
  from typing import TYPE_CHECKING
  from bokeh.core.validation import silenced
  from bokeh.core.validation.warnings import MISSING_RENDERERS
  from bokeh.io.state import curstate
  from bokeh.io.webdriver import webdriver_control
  from bokeh.layouts import row
  from bokeh.models import Circle, ColumnDataSource, Div, Plot, Range1d, Rect
  from bokeh.plotting import figure
  from bokeh.resources import Resources
  from bokeh.themes import Theme
  import bokeh.io.export
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_screenshot_as_png_with_scale_factor_less_than_dpr__issue_8807(webdriver_with_scale_factor) without return types