code: def fs_is_case_insensitive(directory):
      """Detects if the file system for the specified directory
      is case-insensitive."""
      import tempfile
  
      with tempfile.NamedTemporaryFile(dir=directory) as base:
          base_path = base.name
          case_path = base_path.upper()
          if case_path == base_path:
              case_path = base_path.lower()
          try:
              return os.path.samefile(base_path, case_path)
          except FileNotFoundError:
              return False
  
imports: import collections.abc
  import contextlib
  import errno
  import os
  import re
  import stat
  import string
  import sys
  import time
  import unittest
  import warnings
  from test import support
label_desc: Use image node_id 19 for calling a global function with example usage: fs_is_case_insensitive(directory) and returns: os, False