code: def _writable_dir(path):
      """Whether `path` is a directory, to which the user has write access."""
      return os.path.isdir(path) and os.access(path, os.W_OK)
  
imports: import os
  import sys
  import errno
  import shutil
  import random
  import glob
  from IPython.utils.process import system
label_desc: Use image node_id 1 for calling a global function with example usage: _writable_dir(path) and returns: unknown