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 create_context(
      cls: type, args: argparse.Namespace, cfg: CfgNode
  ) -> Dict[str, Any]:
      vis_specs = args.visualizations.split(",")
      visualizers = []
      extractors = []
      for vis_spec in vis_specs:
          texture_atlas = get_texture_atlas(args.texture_atlas)
          texture_atlases_dict = get_texture_atlases(
              args.texture_atlases_map
          )
          vis = cls.VISUALIZERS[vis_spec](
              cfg=cfg,
              texture_atlas=texture_atlas,
              texture_atlases_dict=texture_atlases_dict,
          )
          visualizers.append(vis)
          extractor = create_extractor(vis)
          extractors.append(extractor)
      visualizer = CompoundVisualizer(visualizers)
      extractor = CompoundExtractor(extractors)
      context = {
          "extractor": extractor,
          "visualizer": visualizer,
          "out_fname": args.output,
          "entry_idx": 0,
      }
      return context
  
imports: import argparse
  import glob
  import logging
  import os
  import sys
  from typing import Any, ClassVar, Dict, List
  import torch
  from detectron2.config import CfgNode, get_cfg
  from detectron2.data.detection_utils import read_image
  from detectron2.engine.defaults import DefaultPredictor
  from detectron2.structures.instances import Instances
  from detectron2.utils.logger import setup_logger
  from densepose import add_densepose_config
  from densepose.structures import DensePoseChartPredictorOutput, DensePoseEmbeddingPredictorOutput
  from densepose.utils.logger import verbosity_to_level
  from densepose.vis.base import CompoundVisualizer
  from densepose.vis.bounding_box import ScoredBoundingBoxVisualizer
  from densepose.vis.densepose_outputs_vertex import DensePoseOutputsTextureVisualizer, DensePoseOutputsVertexVisualizer, get_texture_atlases
  from densepose.vis.densepose_results import DensePoseResultsContourVisualizer, DensePoseResultsFineSegmentationVisualizer, DensePoseResultsUVisualizer, DensePoseResultsVVisualizer
  from densepose.vis.densepose_results_textures import DensePoseResultsVisualizerWithTexture, get_texture_atlas
  from densepose.vis.extractor import CompoundExtractor, DensePoseOutputsExtractor, DensePoseResultExtractor, create_extractor
label_desc: Use image node_id 7 for calling the ShowAction obj's underlying member method code with example usage: obj.create_context(cls, args, cfg) and returns: context