code: def _find_file(base_paths, relative_paths, filepattern):
      for path in _cartesian_product(base_paths, relative_paths):
          for file in glob.glob(os.path.join(path, filepattern)):
              return file
      raise _not_found_error(base_paths, relative_paths, filepattern)
  
imports: import io
  import os
  import glob
  import platform
  import re
  import subprocess
  import sys
label_desc: Use image node_id 13 for calling a global function with example usage: _find_file(base_paths, relative_paths, filepattern) and returns: file