code: def test_iiithws_dataset(mock_iiithws_dataset):
      input_size = (32, 128)
      ds = datasets.IIITHWS(
          *mock_iiithws_dataset,
          img_transforms=Resize(input_size, preserve_aspect_ratio=True),
      )
  
      assert (
          len(ds) == 4
      )  # Actual set has 7141797 train and 793533 test samples
      assert repr(ds) == f"IIITHWS(train={True})"
      _validate_dataset_recognition_part(ds, input_size)
  
imports: import os
  from shutil import move
  import numpy
  import pytest
  import tensorflow
  from doctr import datasets
  from doctr.datasets import DataLoader
  from doctr.file_utils import CLASS_NAME
  from doctr.transforms import Resize
label_desc: Use image node_id 22 for calling a global function with example usage: test_iiithws_dataset(mock_iiithws_dataset) without return types