code: def all_displays():
      """Get a list of all displays from `sklearn`.
  
      Returns
      -------
      displays : list of tuples
          List of (name, class), where ``name`` is the display class name as
          string and ``class`` is the actual type of the class.
      """
      # lazy import to avoid circular imports from sklearn.base
      from ._testing import ignore_warnings
  
      all_classes = []
      root = str(Path(__file__).parent.parent)  # sklearn package
      # Ignore deprecation warnings triggered at import time and from walking
      # packages
      with ignore_warnings(category=FutureWarning):
          for _, module_name, _ in pkgutil.walk_packages(
              path=[root], prefix="sklearn."
          ):
              module_parts = module_name.split(".")
              if (
                  any(
                      part in _MODULE_TO_IGNORE for part in module_parts
                  )
                  or "._" in module_name
              ):
                  continue
              module = import_module(module_name)
              classes = inspect.getmembers(module, inspect.isclass)
              classes = [
                  (name, display_class)
                  for name, display_class in classes
                  if not name.startswith("_")
                  and name.endswith("Display")
              ]
              all_classes.extend(classes)
  
      return sorted(set(all_classes), key=itemgetter(0))
  
file_path: catboost/contrib/python/scikit-learn/py3/sklearn/utils/discovery.py
imports: import inspect
  import pkgutil
  from importlib import import_module
  from operator import itemgetter
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: all_displays() and returns: sorted