code: def _can_display_ipywidgets(*deps, message) -> bool:
      # Default to safe behavior: only display widgets if running in a notebook
      # that has valid dependencies
      if in_notebook() and not (
          _has_missing(*deps, message=message)
          or _has_outdated(*deps, message=message)
      ):
          return True
  
      return False
  
file_path: ray/python/ray/widgets/util.py
imports: import importlib
  import logging
  import sys
  import textwrap
  from functools import wraps
  from typing import Any, Callable, Iterable, Optional, TypeVar, Union
  from packaging.version import Version
  from ray._private.thirdparty.tabulate.tabulate import tabulate
  from ray.util.annotations import DeveloperAPI
  from ray.widgets import Template
label_desc: Use image node_id 6 for calling a global function with example usage: _can_display_ipywidgets() and returns: False, True