code: def url_escape(value, plus=True):
      """Returns a URL-encoded version of the given value.
  
      If ``plus`` is true (the default), spaces will be represented
      as "+" instead of "%20".  This is appropriate for query strings
      but not for the path component of a URL.  Note that this default
      is the reverse of Python's urllib module.
  
      .. versionadded:: 3.1
          The ``plus`` argument
      """
      quote = urllib_parse.quote_plus if plus else urllib_parse.quote
      return quote(utf8(value))
  
file_path: catboost/contrib/python/tornado/tornado-4/tornado/escape.py
imports: from __future__ import absolute_import, division, print_function
  import json
  import re
  from tornado.util import PY3, unicode_type, basestring_type
label_desc: Use image node_id 6 for calling a global function with example usage: url_escape(value, plus) and returns: quote