code: def test_physical_line_plugin_multiline_string(tmpdir, capsys):
      cfg_s = f"""\
  [flake8:local-plugins]
  extension =
      T = {yields_physical_line.__module__}:{yields_physical_line.__name__}
  """
  
      cfg = tmpdir.join("tox.ini")
      cfg.write(cfg_s)
  
      src = '''\
  x = "foo" + """
  bar
  """
  '''
      t_py = tmpdir.join("t.py")
      t_py.write_binary(src.encode())
  
      with tmpdir.as_cwd():
          assert main(("t.py", "--config", str(cfg))) == 1
  
      expected = '''\
  t.py:1:1: T001 'x = "foo" + """\\n'
  t.py:2:1: T001 'bar\\n'
  t.py:3:1: T001 '"""\\n'
  '''
      out, err = capsys.readouterr()
      assert out == expected
  
imports: from __future__ import annotations
  import pytest
  from flake8.main.cli import main
  from flake8.main.options import register_default_options
  from flake8.main.options import stage1_arg_parser
  from flake8.options import aggregator
  from flake8.options import config
  from flake8.options.manager import OptionManager
  from flake8.plugins import finder
label_desc: Use image node_id 7 for calling a global function with example usage: test_physical_line_plugin_multiline_string(tmpdir, capsys) without return types