code: def test__crop_imgs_crops_shapes(self):
      with patch(
          "ISR.utils.datahandler.DataHandler._make_img_list",
          return_value=True,
      ):
          with patch(
              "ISR.utils.datahandler.DataHandler._check_dataset",
              return_value=True,
          ):
              DH = DataHandler(
                  lr_dir=None,
                  hr_dir=None,
                  patch_size=3,
                  scale=2,
                  n_validation_samples=None,
              )
      imgs = {
          "hr": np.random.random((20, 20, 3)),
          "lr": np.random.random((10, 10, 3)),
      }
      crops = DH._crop_imgs(imgs, batch_size=2, flatness=0)
      self.assertTrue(crops["hr"].shape == (2, 6, 6, 3))
      self.assertTrue(crops["lr"].shape == (2, 3, 3, 3))
  
imports: import unittest
  import numpy
  from unittest.mock import patch
  from ISR.utils.datahandler import DataHandler
label_desc: Use image node_id 12 for calling the DataHandlerTest obj's underlying member method code with example usage: obj.test__crop_imgs_crops_shapes() without return types