code: def test_filenames_from_a_directory_with_a_predicate():
      """Verify that predicates filter filenames_from."""
      filenames = set(
          _filenames_from(
              arg=_normpath("a/b/"),
              predicate=lambda path: path.endswith(_normpath("b/c.py")),
          )
      )
      # should not include c.py
      expected = _normpaths(("a/b/d.py", "a/b/e/f.py"))
      assert filenames == expected
  
imports: from __future__ import annotations
  import os.path
  import pytest
  from flake8 import utils
  from flake8.discover_files import _filenames_from
  from flake8.discover_files import expand_paths
label_desc: Use image node_id 6 for calling a global function with example usage: test_filenames_from_a_directory_with_a_predicate() without return types