code: def get_paths_from_tree(root, level=0):
      for entry in root:
          if entry.type == "tree":
              for x in get_paths_from_tree(entry, level + 1):
                  yield x
          else:
              yield Path(entry.path)
  
imports: import re
  from pathlib import Path
  import numpy
  from git import Repo
label_desc: Use image node_id 1 for calling a global function with example usage: get_paths_from_tree(root, level) without return types