code: def _validate_bounding(
      x: np.ndarray,
      y: np.ndarray,
  ) -> None:
      """Test each lower bounding with different parameters.
  
      The amount of finite vs infinite values are estimated and are checked that many
      is around the amount in the matrix.
  
      Parameters
      ----------
      x: np.ndarray (1d, 2d or 3d)
          First time series
      y: np.ndarray (1d, 2d, or 3d)
          Second time series
      """
      no_bounding = LowerBounding.NO_BOUNDING
      no_bounding_result = no_bounding.create_bounding_matrix(x, y)
      _validate_bounding_result(
          no_bounding_result, x, y, all_finite=True
      )
  
      sakoe_chiba = LowerBounding.SAKOE_CHIBA
      _validate_bounding_result(
          sakoe_chiba.create_bounding_matrix(
              x, y, sakoe_chiba_window_radius=0.25
          ),
          x,
          y,
      )
      _validate_bounding_result(
          sakoe_chiba.create_bounding_matrix(
              x, y, sakoe_chiba_window_radius=0.25
          ),
          x,
          y,
      )
      _validate_bounding_result(
          sakoe_chiba.create_bounding_matrix(
              x, y, sakoe_chiba_window_radius=1.0
          ),
          x,
          y,
          all_finite=True,
      )
      _validate_bounding_result(
          sakoe_chiba.create_bounding_matrix(
              x, y, sakoe_chiba_window_radius=0.0
          ),
          x,
          y,
          all_infinite=True,
      )
  
      itakura_parallelogram = LowerBounding.ITAKURA_PARALLELOGRAM
  
      _validate_bounding_result(
          itakura_parallelogram.create_bounding_matrix(
              x, y, itakura_max_slope=0.2
          ),
          x,
          y,
          is_gradient_bounding=True,
      )
      _validate_bounding_result(
          itakura_parallelogram.create_bounding_matrix(
              x, y, itakura_max_slope=0.3
          ),
          x,
          y,
          is_gradient_bounding=True,
      )
      _validate_bounding_result(
          itakura_parallelogram.create_bounding_matrix(
              x, y, itakura_max_slope=1.0
          ),
          x,
          y,
          all_finite=True,
          is_gradient_bounding=True,
      )
      _validate_bounding_result(
          itakura_parallelogram.create_bounding_matrix(
              x, y, itakura_max_slope=0.0
          ),
          x,
          y,
          all_infinite=True,
          is_gradient_bounding=True,
      )
  
file_path: sktime/sktime/distances/tests/test_lower_bounding.py
imports: import numpy
  import pandas
  import pytest
  from sktime.distances.lower_bounding import LowerBounding
  from sktime.distances.tests._utils import create_test_distance_numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_bounding(x, y) without return types