code: def fix_path_encoding(path):
      return library.python.strings.to_str(
          path, library.python.strings.fs_encoding()
      )
  
imports: import codecs
  import errno
  import logging
  import os
  import random
  import shutil
  import six
  import stat
  import sys
  import library.python.func
  import library.python.strings
  import library.python.windows
label_desc: Use image node_id 8 for calling a global function with example usage: fix_path_encoding(path) and returns: library