code: def slugify(text):
      """
      Returns a slug of given text, normalizing unicode data for file-safe
      strings. Used for deciding where to write images to disk.
  
      Parameters
      ----------
      text : string
          The string to slugify
  
      Returns
      -------
      slug : string
          A normalized slug representation of the text
  
      .. seealso:: https://bit.ly/2NW7s1j
      """
      slug = re.sub(r"[^\w]+", " ", text)
      slug = "-".join(slug.lower().strip().split())
      return slug
  
file_path: yellowbrick/yellowbrick/utils/helpers.py
imports: import re
  import inspect
  import sklearn
  import numpy
  from sklearn.pipeline import Pipeline
  from sklearn.utils.validation import check_is_fitted
  from yellowbrick.utils.types import is_estimator
  from yellowbrick.exceptions import YellowbrickTypeError
  from yellowbrick.contrib.wrapper import ContribEstimator
label_desc: Use image node_id 9 for calling a global function with example usage: slugify(text) and returns: slug