code: def test_config_file_with_parse_error_is_not_considered(
      tmp_path, caplog
  ):
      # the syntax error here is deliberately to trigger a partial parse
      # https://github.com/python/cpython/issues/95546
      tmp_path.joinpath("setup.cfg").write_text("[flake8]\nx = 1\n...")
  
      assert config._find_config_file(str(tmp_path)) is None
  
      assert len(caplog.record_tuples) == 1
      ((mod, level, msg),) = caplog.record_tuples
      assert (mod, level) == ("flake8.options.config", 30)
      assert msg.startswith("ignoring unparseable config ")
  
imports: from __future__ import annotations
  import configparser
  import os.path
  from unittest import mock
  import pytest
  from flake8 import exceptions
  from flake8.main.options import register_default_options
  from flake8.options import config
  from flake8.options.manager import OptionManager
label_desc: Use image node_id 3 for calling a global function with example usage: test_config_file_with_parse_error_is_not_considered(tmp_path, caplog) without return types