docs: def _get_library_search_paths():
      """
      Returns a list of library search paths, considering of the current working
      directory, default paths and paths from environment variables.
      """
      search_paths = [
          '',
          '/usr/lib64',
          '/usr/local/lib64',
          '/usr/lib', '/usr/local/lib',
          '/run/current-system/sw/lib',
          '/usr/lib/x86_64-linux-gnu/',
          os.path.abspath(os.path.dirname(__file__))
      ]
  
      if sys.platform == 'darwin':
          path_environment_variable = 'DYLD_LIBRARY_PATH'
      else:
          path_environment_variable = 'LD_LIBRARY_PATH'
      if path_environment_variable in os.environ:
          search_paths.extend(os.environ[path_environment_variable].split(':'))
      return search_paths