code: def append_struct_frames(t, frames):
      if len(t) == 0:
          frames.append(widgets.HTML("<big>No fields.</big>"))
      else:
          frames.append(widgets.HTML("<big>Fields:</big>"))
      acc = widgets.Accordion([recursive_build(x) for x in t.values()])
      for i, (name, fd) in enumerate(t.items()):
          acc.set_title(i, f"{repr(name)} ({summary_type(fd)})")
      acc.selected_index = None
      frames.append(acc)
  
file_path: hail/hail/python/hail/experimental/interact.py
imports: from IPython.display import display
  from ipywidgets import widgets
  import hail
  from hail.expr.types import summary_type
label_desc: Use image node_id 6 for calling a global function with example usage: append_struct_frames(t, frames) without return types