code: def _clean_win_chars(string):
      """Windows cannot encode some characters in filename."""
      import urllib
  
      if hasattr(urllib, "quote"):
          quote = urllib.quote
      else:
          # In Python 3, quote is elsewhere
          import urllib.parse
  
          quote = urllib.parse.quote
      for char in ("<", ">", "!", ":", "\\"):
          string = string.replace(char, quote(char))
      return string
  
file_path: catboost/contrib/python/scikit-learn/py2/sklearn/externals/joblib/func_inspect.py
imports: from itertools import islice
  import inspect
  import warnings
  import re
  import os
  from ._compat import _basestring
  from .logger import pformat
  from ._memory_helpers import open_py_source
  from ._compat import PY3_OR_LATER
label_desc: Use image node_id 2 for calling a global function with example usage: _clean_win_chars(string) and returns: string