docs: def autoconfig_url_from_registry():
      """
      Get the PAC ``AutoConfigURL`` value from the Windows Registry.
      This setting is visible as the "use automatic configuration script" field in
      Internet Options > Connection > LAN Settings.
  
      :return: The value from the registry, or None if the value isn't configured or available.
          Note that it may be local filesystem path instead of a URL.
      :rtype: str|None
      :raises NotWindowsError: If called on a non-Windows platform.
      """
      if not ON_WINDOWS:
          raise NotWindowsError()
  
      try:
          with winreg.OpenKey(winreg.HKEY_CURRENT_USER,
                              'Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings') as key:
              return winreg.QueryValueEx(key, 'AutoConfigURL')[0]
      except WindowsError:
          return