code: def tree_print(tree):
      for key in tree:
          print(key, end=" ")  # end=' ' prevents a newline character
          tree_element = tree[
              key
          ]  # multiple lookups is expensive, even amortized O(1)!
          for subElem in tree_element:
              print(" -> ", subElem, end=" ")
              if (
                  type(subElem) != str
              ):  # OP wants indenting after digits
                  print("\n ")  # newline and a space to match indenting
          print()
  
label_desc: Use image node_id 1 for calling a global function with example usage: tree_print(tree) without return types