code: def test_make_formatter_format_string(reporters, caplog):
      ret = reporter.make(reporters, _opts(format="hi %(code)s"))
      assert isinstance(ret, default.Default)
      assert ret.error_format == "hi %(code)s"
  
      assert caplog.record_tuples == [
          (
              "flake8.plugins.reporter",
              30,
              "'hi %(code)s' is an unknown formatter.  Falling back to default.",
          )
      ]
  
file_path: flake8/tests/unit/plugins/reporter_test.py
imports: from __future__ import annotations
  import argparse
  import importlib.metadata
  import pytest
  from flake8.formatting import default
  from flake8.plugins import finder
  from flake8.plugins import reporter
label_desc: Use image node_id 7 for calling a global function with example usage: test_make_formatter_format_string(reporters, caplog) without return types