code: def _to_str(s):
      """
      Convert a filename to a string (on Python 2, explicitly
      a byte string, not Unicode) as distutils checks for the
      exact type str.
      """
      if sys.version_info[0] == 2 and not isinstance(s, str):
          # Assume it's Unicode, as that's what the PEP says
          # should be provided.
          return s.encode(sys.getfilesystemencoding())
      return s
  
imports: import io
  import os
  import sys
  import tokenize
  import shutil
  import contextlib
  import setuptools
  import distutils
  from setuptools.py31compat import TemporaryDirectory
  from pkg_resources import parse_requirements
  from pkg_resources.py31compat import makedirs
label_desc: Use image node_id 1 for calling a global function with example usage: _to_str(s) and returns: s, s