code: def _try_create_firefox_webdriver(
      scale_factor: float = 1,
  ) -> WebDriver | None:
      try:
          return create_firefox_webdriver(scale_factor=scale_factor)
      except Exception:
          return None
  
imports: from __future__ import annotations
  import logging
  from ..util.dependencies import import_required
  import atexit
  import os
  from os.path import devnull
  from shutil import which
  from typing import TYPE_CHECKING, Literal
  from packaging.version import Version
  from ..settings import settings
label_desc: Use image node_id 5 for calling a global function with example usage: _try_create_firefox_webdriver(scale_factor) and returns: create_firefox_webdriver, None