code: def can_fs_encode(filename):
      """
      Return True if the filename can be saved in the file system.
      """
      if os.path.supports_unicode_filenames:
          return True
      try:
          filename.encode(sys.getfilesystemencoding())
      except UnicodeEncodeError:
          return False
      return True
  
imports: import unittest
  import os
  import sys
  import tarfile
  from os.path import splitdrive
  import warnings
  from distutils.archive_util import check_archive_formats, make_tarball, make_zipfile, make_archive, ARCHIVE_FORMATS
  from distutils.spawn import find_executable, spawn
  from distutils.tests import support
  from test.test_support import check_warnings, run_unittest
label_desc: Use image node_id 1 for calling a global function with example usage: can_fs_encode(filename) and returns: True, True, False