docs: def _load_library(library_names, library_file_extensions,
                    library_search_paths, version_check_callback):
      """
      Finds, loads and returns the most recent version of the library.
      """
      candidates = _find_library_candidates(library_names,
                                            library_file_extensions,
                                            library_search_paths)
      library_versions = []
      for filename in candidates:
          version = version_check_callback(filename)
          if version is not None and version >= (3, 0, 0):
              library_versions.append((version, filename))
  
      if not library_versions:
          return None
      library_versions.sort()
      return ctypes.CDLL(library_versions[-1][1])