code: def read_style_directory(style_dir):
      """Return dictionary of styles defined in `style_dir`."""
      styles = dict()
      for path, name in iter_style_files(style_dir):
          with warnings.catch_warnings(record=True) as warns:
              styles[name] = rc_params_from_file(
                  path, use_default_template=False
              )
  
          for w in warns:
              message = "In %s: %s" % (path, w.message)
              warnings.warn(message)
  
      return styles
  
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 10 for calling a global function with example usage: read_style_directory(style_dir) and returns: styles