code: def pattern_match(patterns, source_list):
      task_names = []
      for pattern in patterns:
          for matching in fnmatch.filter(source_list, pattern):
              task_names.append(matching)
      return task_names
  
file_path: lm-evaluation-harness/main.py
imports: import os
  import argparse
  import json
  import logging
  import fnmatch
  from lm_eval import tasks, evaluator
label_desc: Use image node_id 3 for calling a global function with example usage: pattern_match(patterns, source_list) and returns: task_names