code: def _oauth_parse_response(body):
      # I can't find an officially-defined encoding for oauth responses and
      # have never seen anyone use non-ascii.  Leave the response in a byte
      # string for python 2, and use utf8 on python 3.
      body = escape.native_str(body)
      p = urlparse.parse_qs(body, keep_blank_values=False)
      token = dict(
          key=p["oauth_token"][0], secret=p["oauth_token_secret"][0]
      )
  
      # Add the extra parameters the Provider included to the token
      special = ("oauth_token", "oauth_token_secret")
      token.update((k, p[k][0]) for k in p if k not in special)
      return token
  
imports: from __future__ import absolute_import, division, print_function
  import base64
  import binascii
  import functools
  import hashlib
  import hmac
  import time
  import uuid
  from tornado.concurrent import TracebackFuture, return_future, chain_future
  from tornado import gen
  from tornado import httpclient
  from tornado import escape
  from tornado.httputil import url_concat
  from tornado.log import gen_log
  from tornado.stack_context import ExceptionStackContext
  from tornado.util import unicode_type, ArgReplacer, PY3
label_desc: Use image node_id 6 for calling a global function with example usage: _oauth_parse_response(body) and returns: token