code: def test_style_guide_manager_style_guide_for(filename, expected):
      """Verify the style guide selection function."""
      formatter = mock.create_autospec(
          base.BaseFormatter, instance=True
      )
      options = create_options(
          per_file_ignores=PER_FILE_IGNORES_UNPARSED
      )
      guide = style_guide.StyleGuideManager(
          options, formatter=formatter
      )
  
      file_guide = guide.style_guide_for(filename)
      assert file_guide.filename == expected
  
file_path: flake8/tests/unit/test_style_guide.py
imports: from __future__ import annotations
  import argparse
  from unittest import mock
  import pytest
  from flake8 import statistics
  from flake8 import style_guide
  from flake8 import utils
  from flake8.formatting import base
label_desc: Use image node_id 7 for calling a global function with example usage: test_style_guide_manager_style_guide_for(filename, expected) without return types