code: def test_many_to_one_strict_mode(self, strict):
      def _init_many_to_one(strict):
          K.ManyToOneAugmentationDispather(
              K.AugmentationSequential(
                  kornia.augmentation.ColorJiggle(
                      0.1, 0.1, 0.1, 0.1, p=1.0
                  ),
                  kornia.augmentation.RandomAffine(360, p=1.0),
                  data_keys=["input"],
              ),
              K.AugmentationSequential(
                  kornia.augmentation.ColorJiggle(
                      0.1, 0.1, 0.1, 0.1, p=1.0
                  ),
                  kornia.augmentation.RandomAffine(360, p=1.0),
                  data_keys=["input", "mask"],
              ),
              strict=strict,
          )
  
      if strict:
          with pytest.raises(RuntimeError):
              _init_many_to_one(strict)  # fails
      else:
          _init_many_to_one(strict)
  
imports: from functools import partial
  from unittest.mock import patch
  import pytest
  import torch
  import kornia
  import kornia.augmentation
  from kornia.augmentation.container.base import ParamItem
  from kornia.constants import BorderType
  from kornia.geometry.bbox import bbox_to_mask
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling the TestDispatcher obj's underlying member method code with example usage: obj.test_many_to_one_strict_mode(strict) without return types