code: def _check_cygwin_installed(cyg_arch='x86_64'):
      '''
      Return True or False if cygwin is installed.
  
      Use the cygcheck executable to check install. It is installed as part of
      the base package, and we use it to check packages
      '''
      path_to_cygcheck = os.sep.join(['C:',
                                      _get_cyg_dir(cyg_arch),
                                      'bin', 'cygcheck.exe'])
      LOG.debug('Path to cygcheck.exe: %s', path_to_cygcheck)
      if not os.path.exists(path_to_cygcheck):
          LOG.debug('Could not find cygcheck.exe')
          return False
      return Truf _check_cygwin_installed(cyg_arch='x86_64'):
      '''
      Return True or False if cygwin is installed.
  
      Use the cygcheck executable to check install. It is installed as part of
      the base package, and we use it to check packages
      '''
      path_to_cygcheck = os.sep.join(['C:',
                                      _get_cyg_dir(cyg_arch),
                                      'bin', 'cygcheck.exe'])
      LOG.debug('Path to cygcheck.exe: %s', path_to_cygcheck)
      if not os.path.exists(path_to_cygcheck):
          LOG.debug('Could not find cygcheck.exe')
          return False
      return True
docs: Return True or False if cygwin is installed.
  
      Use the cygcheck executable to check install. It is installed as part of
      the base package, and we use it to check packages