code: def glob_in_parents(dir, patterns, upper_limit=None):
      result = []
      parent_dirs = all_parents(dir, upper_limit)
  
      for p in parent_dirs:
          result = glob(p, patterns)
          if result:
              break
  
      return result
  
imports: import os.path
  from utility import to_seq
  from glob import glob
  from b2.util import bjam_signature
label_desc: Use image node_id 11 for calling a global function with example usage: glob_in_parents(dir, patterns, upper_limit) and returns: result