code: def _shape_validation(
      param: Tensor, shape: Union[Tuple[int, ...], List[int]], name: str
  ) -> None:
      if param.shape != torch.Size(shape):
          raise AssertionError(
              f"Invalid shape for {name}. Expected {shape}. Got {param.shape}"
          )
  
imports: from functools import wraps
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  from torch.distributions import Beta, Uniform
  from kornia.core import Tensor, as_tensor
  from kornia.geometry.boxes import Boxes
  from kornia.geometry.keypoints import Keypoints
  from kornia.utils import _extract_device_dtype
label_desc: Use image node_id 15 for calling a global function with example usage: _shape_validation(param, shape, name) without return types