class_docstr: Show action that visualizes selected entries on an image
class_docstr_tok: ["Show","action","that","visualizes","selected","entries","on","an","image"]
code: def _extract_data_for_visualizers_from_entry(
      cls: type, vis_specs: List[str], entry: Dict[str, Any]
  ):
      dp_list = []
      bbox_list = []
      for annotation in entry["annotations"]:
          is_valid, _ = DensePoseDataRelative.validate_annotation(
              annotation
          )
          if not is_valid:
              continue
          bbox = torch.as_tensor(annotation["bbox"])
          bbox_list.append(bbox)
          dp_data = DensePoseDataRelative(annotation)
          dp_list.append(dp_data)
      datas = []
      for vis_spec in vis_specs:
          datas.append(
              bbox_list if "bbox" == vis_spec else (bbox_list, dp_list)
          )
      return datas
  
imports: import argparse
  import logging
  import os
  import sys
  from timeit import default_timer
  from typing import Any, ClassVar, Dict, List
  import torch
  from detectron2.data.catalog import DatasetCatalog
  from detectron2.utils.file_io import PathManager
  from detectron2.utils.logger import setup_logger
  from densepose.structures import DensePoseDataRelative
  from densepose.utils.dbhelper import EntrySelector
  from densepose.utils.logger import verbosity_to_level
  from densepose.vis.base import CompoundVisualizer
  from densepose.vis.bounding_box import BoundingBoxVisualizer
  from densepose.vis.densepose_data_points import DensePoseDataCoarseSegmentationVisualizer, DensePoseDataPointsIVisualizer, DensePoseDataPointsUVisualizer, DensePoseDataPointsVisualizer, DensePoseDataPointsVVisualizer
label_desc: Use image node_id 6 for calling the ShowAction obj's underlying member method code with example usage: obj._extract_data_for_visualizers_from_entry(cls, vis_specs, entry) and returns: datas