code: def test_shape(self):
      test_dataset = ["vwxyz", "hello", "world"]
      n_per_image = len(test_dataset[0])
  
      result = PatchDataset(
          data=test_dataset,
          patch_func=identity,
          samples_per_image=n_per_image,
      )
  
      output = []
      n_workers = 0 if sys.platform == "win32" else 2
      for item in DataLoader(
          result, batch_size=3, num_workers=n_workers
      ):
          output.append("".join(item))
      if n_workers == 0:
          expected = ["vwx", "yzh", "ell", "owo", "rld"]
      else:
          expected = ["vwx", "hel", "yzw", "lo", "orl", "d"]
      self.assertEqual(output, expected)
  
file_path: MONAI/tests/test_patch_dataset.py
imports: from __future__ import annotations
  import sys
  import unittest
  import numpy
  from monai.data import DataLoader, Dataset, PatchDataset
  from monai.transforms import RandShiftIntensity, RandSpatialCropSamples
  from monai.utils import set_determinism
label_desc: Use image node_id 1 for calling the TestPatchDataset obj's underlying member method code with example usage: obj.test_shape() without return types