code: def urls():
      # type: () -> SearchStrategy[Text]
      """A strategy for :rfc:`3986`, generating http/https URLs."""
  
      def url_encode(s):
          return "".join(
              c if c in URL_SAFE_CHARACTERS else "%%%02X" % ord(c)
              for c in s
          )
  
      schemes = st.sampled_from(["http", "https"])
      ports = st.integers(min_value=0, max_value=2**16 - 1).map(
          ":{}".format
      )
      paths = st.lists(st.text(string.printable).map(url_encode)).map(
          "/".join
      )
  
      return st.builds(
          "{}://{}{}/{}".format,
          schemes,
          domains(),
          st.just("") | ports,
          paths,
      )
  
file_path: catboost/contrib/python/hypothesis/py2/hypothesis/provisional.py
imports: from __future__ import absolute_import, division, print_function
  import os.path
  import string
  import importlib_resources
  import hypothesis.internal.conjecture.utils
  import hypothesis.strategies._internal.core
  from hypothesis.errors import InvalidArgument
  from hypothesis.strategies._internal.strategies import SearchStrategy
label_desc: Use image node_id 2 for calling a global function with example usage: urls() and returns: st, str