code: def get_all_files(directory, pattern):
      """Find all files matching *pattern* under ``directory``."""
      matches = []
      for root, _, filenames in os.walk(directory):
          for filename in fnmatch.filter(filenames, pattern):
              matches.append(os.path.join(root, filename))
      return matches
  
file_path: satpy/satpy/tests/features/steps/steps-real-load-process-write.py
imports: import fnmatch
  import os
  from tempfile import NamedTemporaryFile
  import numpy
  from behave import given, then, when
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: get_all_files(directory, pattern) and returns: matches