code: def use(style):
      """Use matplotlib style settings from a style specification.
  
      The style name of 'default' is reserved for reverting back to
      the default style settings.
  
      Parameters
      ----------
      style : str, dict, or list
          A style specification. Valid options are:
  
          +------+-------------------------------------------------------------+
          | str  | The name of a style or a path/URL to a style file. For a    |
          |      | list of available style names, see `style.available`.       |
          +------+-------------------------------------------------------------+
          | dict | Dictionary with valid key/value pairs for                   |
          |      | `matplotlib.rcParams`.                                      |
          +------+-------------------------------------------------------------+
          | list | A list of style specifiers (str or dict) applied from first |
          |      | to last in the list.                                        |
          +------+-------------------------------------------------------------+
  
  
      """
      style_alias = {"mpl20": "default", "mpl15": "classic"}
      if isinstance(style, six.string_types) or hasattr(style, "keys"):
          # If name is a single str or dict, make it a single element list.
          styles = [style]
      else:
          styles = style
  
      styles = (
          style_alias.get(s, s)
          if isinstance(s, six.string_types)
          else s
          for s in styles
      )
      for style in styles:
          if not isinstance(style, six.string_types):
              _apply_style(style)
          elif style == "default":
              _apply_style(rcParamsDefault, warn=False)
          elif style in library:
              _apply_style(library[style])
          else:
              try:
                  rc = rc_params_from_file(
                      style, use_default_template=False
                  )
                  _apply_style(rc)
              except IOError:
                  raise IOError(
                      "{!r} not found in the style library and input is not a "
                      "valid URL or path; see `style.available` for list of "
                      "available styles".format(style)
                  )
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/style/core.py
imports: from __future__ import absolute_import, division, print_function
  import six
  import os
  import re
  import contextlib
  import warnings
  import matplotlib
  from matplotlib import rc_params_from_file, rcParamsDefault
label_desc: Use image node_id 4 for calling a global function with example usage: use(style) without return types