code: def test_style_guide_applies_to(style_guide_file, filename, expected):
      """Verify that we match a file to its style guide."""
      formatter = mock.create_autospec(
          base.BaseFormatter, instance=True
      )
      options = create_options()
      guide = style_guide.StyleGuide(
          options,
          formatter=formatter,
          stats=statistics.Statistics(),
          filename=style_guide_file,
      )
      assert guide.applies_to(filename) is 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 4 for calling a global function with example usage: test_style_guide_applies_to(style_guide_file, filename, expected) without return types