code: def get_sample_items(
      config: Settings, sample: dict
  ) -> List[Renderable]:
      """Create the list of sample items
  
      Args:
          config: settings object
          sample: dict of samples
  
      Returns:
          List of sample items to show in the interface.
      """
      items: List[Renderable] = []
      if isinstance(sample, tuple):
          for s in zip(*sample):
              items.append(
                  Container(
                      [
                          Sample(
                              sample=obj.data,
                              name=config.html.style._labels[idx],
                              anchor_id=obj.id,
                              caption=obj.caption,
                          )
                          for idx, obj in enumerate(s)
                      ],
                      sequence_type="batch_grid",
                      batch_size=len(sample),
                      anchor_id=f"sample_{slugify(s[0].name)}",
                      name=s[0].name,
                  )
              )
      else:
          for obj in sample:
              items.append(
                  Sample(
                      sample=obj.data,
                      name=obj.name,
                      anchor_id=obj.id,
                      caption=obj.caption,
                  )
              )
      return items
  
imports: from typing import List, Sequence
  import pandas
  from tqdm.auto import tqdm
  from ydata_profiling.config import Settings
  from ydata_profiling.model import BaseDescription
  from ydata_profiling.model.alerts import AlertType
  from ydata_profiling.model.handler import get_render_map
  from ydata_profiling.report.presentation.core import HTML, Collapse, Container, Dropdown, Duplicate
  from ydata_profiling.report.presentation.core import Image
  from ydata_profiling.report.presentation.core import Sample, ToggleButton, Variable
  from ydata_profiling.report.presentation.core.renderable import Renderable
  from ydata_profiling.report.presentation.core.root import Root
  from ydata_profiling.report.structure.correlations import get_correlation_items
  from ydata_profiling.report.structure.overview import get_dataset_items
  from ydata_profiling.utils.dataframe import slugify
label_desc: Use image node_id 5 for calling a global function with example usage: get_sample_items(config, sample) and returns: items