code: def test_exception(self, random_apply_weights, device, dtype):
      inp = torch.randn(1, 3, 30, 30, device=device, dtype=dtype)
      with pytest.raises(
          Exception
      ):  # AssertError and NotImplementedError
          K.ImageSequential(
              K.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),
              random_apply_weights=random_apply_weights,
          ).inverse(inp)
  
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 1 for calling the TestSequential obj's underlying member method code with example usage: obj.test_exception(random_apply_weights, device, dtype) without return types