code: def test_conf_py_language_none_warning(logger, tmp_path):
      """Regression test for #10474."""
      # Given a conf.py file with language = None
      (tmp_path / "conf.py").write_text(
          "language = None", encoding="utf-8"
      )
  
      # When we load conf.py into a Config object
      Config.read(tmp_path, {}, None)
  
      # Then a warning is raised
      assert logger.warning.called
      assert logger.warning.call_args[0][0] == (
          "Invalid configuration value found: 'language = None'. "
          "Update your configuration to a valid language code. "
          "Falling back to 'en' (English)."
      )
  
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 28 for calling a global function with example usage: test_conf_py_language_none_warning(logger, tmp_path) without return types