code: def check_WriteAccess(path, is_windows=False, logging=False):
      """
      ## check_WriteAccess
  
      Checks whether given path directory has Write-Access.
  
      Parameters:
          path (string): absolute path of directory
          is_windows (boolean): is running on Windows OS?
          logging (bool): enables logging for its operations
  
      **Returns:** A boolean value, confirming whether Write-Access available, or not?.
      """
      # check if path exists
      dirpath = Path(path)
      try:
          if not (dirpath.exists() and dirpath.is_dir()):
              logger.warning(
                  "Specified directory `{}` doesn't exists or valid.".format(
                      path
                  )
              )
              return False
          else:
              path = dirpath.resolve()
      except:
          return False
      # check filepath on *nix systems
      if not is_windows:
          uid = os.geteuid()
          gid = os.getegid()
          s = os.stat(path)
          mode = s[stat.ST_MODE]
          return (
              ((s[stat.ST_UID] == uid) and (mode & stat.S_IWUSR))
              or ((s[stat.ST_GID] == gid) and (mode & stat.S_IWGRP))
              or (mode & stat.S_IWOTH)
          )
      # otherwise, check filepath on windows
      else:
          write_accessible = False
          temp_fname = os.path.join(path, "temp.tmp")
          try:
              fd = os.open(
                  temp_fname, os.O_WRONLY | os.O_CREAT | os.O_TRUNC
              )
              os.close(fd)
              write_accessible = True
          except Exception as e:
              if isinstance(e, PermissionError):
                  logger.error(
                      "You don't have adequate access rights to use `{}` directory!".format(
                          path
                      )
                  )
              logging and logger.exception(str(e))
          finally:
              delete_file_safe(temp_fname)
          return write_accessible
  
imports: import os
  import re
  import sys
  import cv2
  import types
  import errno
  import stat
  import shutil
  import importlib
  import requests
  import numpy
  import logging
  import platform
  import socket
  from tqdm import tqdm
  from contextlib import closing
  from pathlib import Path
  from colorlog import ColoredFormatter
  from pkg_resources import parse_version
  from requests.adapters import HTTPAdapter, Retry
  from ..version import __version__
label_desc: Use image node_id 7 for calling a global function with example usage: check_WriteAccess(path, is_windows, logging) and returns: unknown, write_accessible, False, False