class_docstr: Plots metrics on to `Visdom <https://github.com/facebookresearch/visdom>`_.
  
  Visdom is a flexible tool for creating, organizing, and sharing visualizations
      of live, rich data. It supports Python.
docstr: Args:
      server: host name of the visdom server
      port: port of visdom server, such as 8097
      env: environment of visdom
      title_suffix: suffix that will be appended to the title
code: def __init__(
      self,
      server: str,
      port: str,
      env: str = "main",
      title_suffix: str = "",
  ) -> None:
      """
      Args:
          server: host name of the visdom server
          port: port of visdom server, such as 8097
          env: environment of visdom
          title_suffix: suffix that will be appended to the title
      """
      super().__init__()
      if not visdom_available:
          raise RuntimeError(
              "Visdom is not installed, cannot use VisdomHook"
          )
  
      self.server: str = server
      self.port: str = port
      self.env: str = env
      self.title_suffix: str = title_suffix
  
      self.metrics: Dict = {}
      self.visdom: Visdom = Visdom(self.server, self.port)
  
file_path: ClassyVision/classy_vision/hooks/visdom_hook.py
imports: import collections.abc
  import logging
  from typing import Any, Dict
  from classy_vision.generic.distributed_util import is_primary
  from classy_vision.generic.util import flatten_dict
  from classy_vision.generic.visualize import plot_learning_curves
  from classy_vision.hooks import register_hook
  from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 1 to create a new VisdomHook object from inherited base classes: ClassyHook with example: obj = VisdomHook(server, port, env, title_suffix)