docstr: Visualize image and labels.
  
  https://www.tensorflow.org/tutorials/load_data/images#load_using_keraspreprocessing
  
  Args:
      limit: number of images to display
      figsize: size of visualization
  Returns:
      Displays images and labels
docstr_tok: ["Visualize","image","and","labels",".","https",":","\/\/www.tensorflow.org\/tutorials\/load_data\/images","#","load_using_keraspreprocessing","Args",":","limit",":","number","of","images","to","display","figsize",":","size","of","visualization","Returns",":","Displays","images","and","labels"]
code: def show_batch(self, limit: int, figsize: tuple = (10, 10)):
      """Visualize image and labels.
  
      https://www.tensorflow.org/tutorials/load_data/images#load_using_keraspreprocessing
  
      Args:
          limit: number of images to display
          figsize: size of visualization
      Returns:
          Displays images and labels
      """
      if not isinstance(limit, int):
          raise AssertionError
      if not isinstance(figsize, tuple):
          raise AssertionError
  
      data = self.data
      if data is None:
          raise UserWarning("TF.data not created yet!")
      idx_to_class = self.idx_to_class
  
      plt.figure(figsize=figsize)
      sub_plot_size = math.ceil(limit / 2)
  
      for i, e in enumerate(data.take(limit)):
          image, label = e
          image = image.numpy().astype("uint8")
          label = (
              idx_to_class[label.numpy()]
              if idx_to_class
              else label.numpy()
          )
  
          plt.subplot(sub_plot_size, sub_plot_size, i + 1)
  
          plt.imshow(image)
          plt.title(label)
          plt.axis("off")
  
imports: import math
  import os
  import pathlib
  from glob import glob
  from typing import List, Optional, Union
  import matplotlib.pyplot
  import tensorflow
  from chitra.image.tf_image import read_image, resize_image
  from .core import remove_dsstore
  from .utility.tf_utils import get_basename
label_desc: Use image node_id 2 for calling the Clf obj's underlying member method code with example usage: obj.show_batch(limit, figsize) without return types