def METHOD_NAME(var: DataGroup, name: str, name_spaces: list) -> str:
    parent_type = "scipp"
    objtype = type(var).__name__
    shape_repr = _format_shape(var)
    checkbox_id = escape("summary-" + str(uuid.uuid4()))
    depth = len(name_spaces)
    subsection = _datagroup_detail(var, name_spaces + [name])
    html_tpl = load_collapsible_row_tpl()
    return Template(html_tpl).substitute(
        name=escape(str(name)),
        parent=escape(parent_type),
        objtype=escape(objtype),
        shape_repr=shape_repr,
        summary_section_id=checkbox_id,
        depth=depth,
        checkbox_status='',
        subsection=subsection,
    )