code: def render(self) -> widgets.Widget:
      if self.sequence_type == "list":
          widget = get_list(self.content["items"])
      elif self.sequence_type == "named_list":
          widget = get_named_list(self.content["items"])
      elif self.sequence_type in ["tabs", "sections", "select"]:
          widget = get_tabs(self.content["items"])
      elif self.sequence_type == "accordion":
          widget = get_accordion(self.content["items"])
      elif self.sequence_type == "grid":
          widget = get_row(self.content["items"])
      elif self.sequence_type == "batch_grid":
          widget = get_batch_grid(
              self.content["items"],
              self.content["batch_size"],
              self.content.get("titles", True),
              self.content.get("subtitles", False),
          )
      else:
          raise ValueError(
              "widget type not understood", self.sequence_type
          )
  
      return widget
  
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 1 for calling the WidgetContainer obj's underlying member method code with example usage: obj.render() and returns: widget