class_docstr: Visualize images and predicted semantic segmentation masks.
class_docstr_tok: ["Visualize","images","and","predicted","semantic","segmentation","masks","."]
docstr: Parameters
  ----------
      img_path
          File path of the image.
code: def plot_image(self, img_path: str):
      """
      Parameters
      ----------
          img_path
              File path of the image.
      """
      image = Image.open(img_path)
      plt.imshow(image)
  
imports: import collections
  import colorsys
  import logging
  import re
  from enum import Enum, unique
  from typing import List
  import matplotlib
  import matplotlib.colors
  import matplotlib.figure
  import matplotlib.pyplot
  import numpy
  import pandas
  from matplotlib.backends.backend_agg import FigureCanvasAgg
  from PIL import Image
  from .colormap import random_color
  from .misc import merge_spans
label_desc: Use image node_id 1 for calling the SemanticSegmentationVisualizer obj's underlying member method code with example usage: obj.plot_image(img_path) without return types