class_docstr: Helper to visualize the clusters assignment of images
  
  This class is meant to be used in a notebook and will generate
  visualisations for the different clusters
class_docstr_tok: ["Helper","to","visualize","the","clusters","assignment","of","images","This","class","is","meant","to","be","used","in","a","notebook","and","will","generate","visualisations","for","the","different","clusters"]
docstr: Display a random subset of image assigned to the cluster in an
  image matrix
  
  The number of images is num_col * num_row where num_col and num_row
  are the shape of the image matrix
docstr_tok: ["Display","a","random","subset","of","image","assigned","to","the","cluster","in","an","image","matrix","The","number","of","images","is","num_col","*","num_row","where","num_col","and","num_row","are","the","shape","of","the","image","matrix"]
code: def show_cluster(
      self,
      cluster_id: int,
      num_col: int = 4,
      num_row: int = 3,
      seed: int = 0,
  ):
      """
      Display a random subset of image assigned to the cluster in an
      image matrix
  
      The number of images is num_col * num_row where num_col and num_row
      are the shape of the image matrix
      """
  
      import matplotlib.pyplot as plt
  
      image_ids = self.cluster_to_image[cluster_id]
      images = self._select_images(image_ids, num_col * num_row, seed)
      num_images = len(images)
      fig, ax = plt.subplots(
          figsize=(4 * num_col, 4 * num_row),
          ncols=num_col,
          nrows=num_row,
      )
      for i in range(num_images):
          row, col = divmod(i, num_col)
          ax[row, col].imshow(images[i])
      plt.show()
  
file_path: vissl/vissl/utils/cluster_utils.py
imports: import os
  from dataclasses import dataclass
  from typing import Dict, List
  import numpy
  import torch
  from iopath.common.file_io import g_pathmgr
  from vissl.config import AttrDict
  from vissl.data import build_dataset
label_desc: Use image node_id 2 for calling the ClusterVisualizer obj's underlying member method code with example usage: obj.show_cluster(cluster_id, num_col, num_row, seed) without return types