code: def get_leaf_nodes(tree):
      if isinstance(tree, dict):
          for v in tree.values():
              get_leaf_nodes(v)
      elif isinstance(tree, list) or isinstance(tree, tuple):
          for ele in tree:
              get_leaf_nodes(ele)
      else:
          mkdocs.append(tree)
  
imports: import os
  import subprocess
  import yaml
  from mlxtend import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: get_leaf_nodes(tree) without return types