code: def test_to_norm_affine_ill(
      self, affine, src_size, dst_size, align_corners
  ):
      with self.assertRaises(TypeError):
          to_norm_affine(affine, src_size, dst_size, align_corners)
      with self.assertRaises(ValueError):
          affine = torch.as_tensor(
              affine, device=torch.device("cpu:0"), dtype=torch.float32
          )
          to_norm_affine(affine, src_size, dst_size, align_corners)
  
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from parameterized import parameterized
  from monai.networks import normalize_transform, to_norm_affine
  from monai.networks.layers import AffineTransform
  from tests.utils import is_tf32_env
label_desc: Use image node_id 2 for calling the TestToNormAffine obj's underlying member method code with example usage: obj.test_to_norm_affine_ill(affine, src_size, dst_size, align_corners) without return types