code: def decode(path):
      if isinstance(path, bytes_cls):
          try:
              path = path.decode(fs_encoding, "strict")
          except UnicodeDecodeError:
              if not platform.is_linux():
                  raise
              path = path.decode(fs_fallback_encoding, "strict")
      return path
  
imports: import sys
  from wandb_watchdog.utils import platform
label_desc: Use image node_id 2 for calling a global function with example usage: decode(path) and returns: path