code: def test_config_eol(logger, tmp_path):
      # test config file's eol patterns: LF, CRLF
      configfile = tmp_path / "conf.py"
      for eol in (b"\n", b"\r\n"):
          configfile.write_bytes(b'project = "spam"' + eol)
          cfg = Config.read(tmp_path, {}, None)
          assert cfg.project == "spam"
          assert logger.called is False
  
imports: import pickle
  import time
  from pathlib import Path
  from unittest import mock
  import pytest
  import sphinx
  from sphinx.builders.gettext import _gettext_compact_validator
  from sphinx.config import ENUM, Config, _Opt, check_confval_types
  from sphinx.deprecation import RemovedInSphinx90Warning
  from sphinx.errors import ConfigError, ExtensionError, VersionRequirementError
label_desc: Use image node_id 14 for calling a global function with example usage: test_config_eol(logger, tmp_path) without return types