code: def _permissions():
      try:
          if not os.path.exists(PLOTLY_DIR):
              try:
                  os.mkdir(PLOTLY_DIR)
              except Exception:
                  # in case of race
                  if not os.path.isdir(PLOTLY_DIR):
                      raise
          with open(TEST_FILE, "w") as f:
              f.write("testing\n")
          try:
              os.remove(TEST_FILE)
          except Exception:
              pass
          return True
      except Exception:  # Do not trap KeyboardInterrupt.
          return False
  
label_desc: Use image node_id 1 for calling a global function with example usage: _permissions() and returns: True, False