code: def _common_param_check(
      batch_size: int, same_on_batch: Optional[bool] = None
  ) -> None:
      """Valid batch_size and same_on_batch params."""
      if not (isinstance(batch_size, int) and batch_size >= 0):
          raise AssertionError(
              f"`batch_size` shall be a positive integer. Got {batch_size}."
          )
      if same_on_batch is not None and not isinstance(
          same_on_batch, bool
      ):
          raise AssertionError(
              f"`same_on_batch` shall be boolean. Got {same_on_batch}."
          )
  
file_path: kornia/kornia/augmentation/utils/param_validation.py
imports: from typing import Any, List, Optional, Tuple, Union
  import torch
  from kornia.core import Tensor, as_tensor, tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _common_param_check(batch_size, same_on_batch) without return types