code: def get_name(item: Renderable) -> str:
      if hasattr(item, "name"):
          return item.name
      else:
          return item.anchor_id
  
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 a global function with example usage: get_name(item) and returns: item, item