code: def _encode(s):
      errors = "strict" if six.PY2 else "surrogateescape"
      return s.encode("utf-8", errors)
  
imports: from base64 import standard_b64encode
  from distutils import log
  from distutils.errors import DistutilsOptionError
  import os
  import socket
  import zipfile
  import tempfile
  import shutil
  import itertools
  import functools
  from setuptools.extern import six
  from setuptools.extern.six.moves import http_client, urllib
  from pkg_resources import iter_entry_points
  from .upload import upload
label_desc: Use image node_id 1 for calling a global function with example usage: _encode(s) and returns: s