code: def find_up_to_root(folder, name):
      last = ""
      while last != folder:
          candidate = os.path.join(folder, name)
          if os.path.exists(candidate):
              return candidate
          last = folder
          folder = os.path.dirname(folder)
  
imports: import BoostBuild
  import os.path
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: find_up_to_root(folder, name) and returns: candidate