code: def jupyter_progress_bar(
      min: float = 0, max: float = 1.0
  ) -> Optional[ProgressWidget]:
      """Return an ipywidget progress bar or None if we can't import it."""
      widgets = wandb.util.get_module("ipywidgets")
      try:
          if widgets is None:
              # TODO: this currently works in iPython but it's deprecated since 4.0
              with warnings.catch_warnings():
                  warnings.simplefilter("ignore")
                  from IPython.html import widgets  # type: ignore
  
          assert hasattr(widgets, "VBox")
          assert hasattr(widgets, "Label")
          assert hasattr(widgets, "FloatProgress")
          return ProgressWidget(widgets, min=min, max=max)
      except (ImportError, AssertionError):
          return None
  
file_path: wandb/wandb/sdk/lib/ipython.py
imports: import logging
  import sys
  import warnings
  from typing import Optional
  import wandb
label_desc: Use image node_id 7 for calling a global function with example usage: jupyter_progress_bar(min, max) and returns: ProgressWidget, None