code: def __init__(self, show_legend: bool = False):
      self.windows: Dict[str, Any] = {}
      self.show_legend = show_legend
  
imports: import os
  from typing import Any, Callable, cast, Dict, List, Optional, Union
  import torch
  import torch.nn
  from torch.optim import Optimizer
  from ignite.contrib.handlers.base_logger import BaseLogger, BaseOptimizerParamsHandler, BaseOutputHandler, BaseWeightsScalarHandler
  from ignite.engine import Engine, Events
  from ignite.handlers import global_step_from_engine
label_desc: Use image node_id 1 to create a new _BaseVisDrawer object  with example: obj = _BaseVisDrawer(show_legend)