code: def create_new_paste(contents):
      """
      Creates a new paste using bpaste.net service.
  
      :contents: paste contents as utf-8 encoded bytes
      :returns: url to the pasted contents
      """
      import re
  
      if sys.version_info < (3, 0):
          from urllib import urlopen, urlencode
      else:
          from urllib.request import urlopen
          from urllib.parse import urlencode
  
      params = {"code": contents, "lexer": "text", "expiry": "1week"}
      url = "https://bpaste.net"
      response = urlopen(
          url, data=urlencode(params).encode("ascii")
      ).read()
      m = re.search(r'href="/raw/(\w+)"', response.decode("utf-8"))
      if m:
          return "%s/show/%s" % (url, m.group(1))
      else:
          return "bad response: " + response
  
file_path: catboost/contrib/python/pytest/py2/_pytest/pastebin.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import tempfile
  import six
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: create_new_paste(contents) and returns: unknown, unknown