code: def test_parse_config_ignores_unknowns(tmp_path, opt_manager, caplog):
      cfg = configparser.RawConfigParser()
      cfg.add_section("flake8")
      cfg.set("flake8", "wat", "wat")
  
      ret = config.parse_config(opt_manager, cfg, str(tmp_path))
      assert ret == {}
  
      assert caplog.record_tuples == [
          (
              "flake8.options.config",
              10,
              'Option "wat" is not registered. Ignoring.',
          )
      ]
  
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 21 for calling a global function with example usage: test_parse_config_ignores_unknowns(tmp_path, opt_manager, caplog) without return types