code: def assert_value_smaller_than_input_size(
      x: np.ndarray, value: int, value_name: str
  ) -> None:
      """
      Checks if value is smaller than input size, assumes batch and channel first dimension.
  
      Parameters
      ----------
      x: np.ndarray
           The input to check the value against.
      value: integer
          The value that must be smaller than input size.
      value_name: string
          The hyperparameter to check, e.g., "k" for TopKIntersection.
  
      Returns
      -------
      None
      """
      if value >= np.prod(x.shape[2:]):
          raise ValueError(
              f"'{value_name}' must be smaller than input size."
              f" [{value} >= {np.prod(x.shape[2:])}]"
          )
  
file_path: Quantus/quantus/helpers/asserts.py
imports: from typing import Callable, Tuple, Sequence, Union
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: assert_value_smaller_than_input_size(x, value, value_name) without return types