code: def get_accordion(items: List[Renderable]) -> widgets.Accordion:
      children = []
      titles = []
      for item in items:
          children.append(item.render())
          titles.append(get_name(item))
  
      accordion = widgets.Accordion(children=children)
      for id, title in enumerate(titles):
          accordion.set_title(id, title)
  
      return accordion
  
file_path: ydata-profiling/src/ydata_profiling/report/presentation/flavours/widget/container.py
imports: from typing import List
  from ipywidgets import widgets
  from ydata_profiling.report.presentation.core.container import Container
  from ydata_profiling.report.presentation.core.renderable import Renderable
label_desc: Use image node_id 7 for calling a global function with example usage: get_accordion(items) and returns: accordion