code: def make_name_filter(filter_names):
      filter_names = map(fix_filter, filter_names)
      filter_full_names = set()
      for name in filter_names:
          if "*" not in name:
              filter_full_names.add(name)
  
      def predicate(testname):
          return testname in filter_full_names or any(
              [
                  fnmatch.fnmatch(
                      escape_for_fnmatch(testname),
                      escape_for_fnmatch(filter_name),
                  )
                  for filter_name in filter_names
              ]
          )
  
      return predicate
  
file_path: catboost/library/python/testing/filter/filter.py
imports: import re
  import fnmatch
  import logging
label_desc: Use image node_id 4 for calling a global function with example usage: make_name_filter(filter_names) and returns: predicate, unknown