code: def fsdecode(filename):
      """Wrapper for os.fsdecode which was introduced in python 3.2 ."""
  
      if sys.version_info >= (3, 2):
          PathLikeTypes = (basestring, bytes)
          if sys.version_info >= (3, 6):
              PathLikeTypes += (os.PathLike,)
          if isinstance(filename, PathLikeTypes):
              return os.fsdecode(filename)
      else:
          if isinstance(filename, bytes):
              return filename.decode(sys.getfilesystemencoding())
          if isinstance(filename, basestring):
              return filename
  
      raise TypeError(
          "type {0} not accepted by fsdecode".format(type(filename))
      )
  
imports: from __future__ import division
  from io import BufferedReader
  import json
  import os
  import re
  import sys
  from subprocess import Popen, PIPE
  from math import log, ceil
  from tempfile import TemporaryFile
  from warnings import warn
  from functools import wraps
label_desc: Use image node_id 13 for calling a global function with example usage: fsdecode(filename) and returns: os, filename, filename