code: def _check_window_params(data, window_length):
      """
      Check that a window of length `window_length` is well-defined on `data`.
  
      Parameters
      ----------
      data : np.ndarray[ndim=2]
          The array of data to check.
      window_length : int
          Length of the desired window.
  
      Returns
      -------
      None
  
      Raises
      ------
      WindowLengthNotPositive
          If window_length < 1.
      WindowLengthTooLong
          If window_length is greater than the number of rows in `data`.
      """
      if window_length < 1:
          raise WindowLengthNotPositive(window_length=window_length)
  
      if window_length > data.shape[0]:
          raise WindowLengthTooLong(
              nrows=data.shape[0],
              window_length=window_length,
          )
  
imports: from textwrap import dedent
  from functools import partial
  from numpy import bool_, dtype, float32, float64, int32, int64, int16, uint16, ndarray, uint32, uint8
  from six import iteritems
  from toolz import merge_with
  from zipline.errors import WindowLengthNotPositive, WindowLengthTooLong
  from zipline.lib.labelarray import LabelArray
  from zipline.utils.numpy_utils import datetime64ns_dtype, float64_dtype, int64_dtype, uint8_dtype
  from zipline.utils.memoize import lazyval
  from ._float64window import AdjustedArrayWindow
  from ._int64window import AdjustedArrayWindow
  from ._labelwindow import AdjustedArrayWindow
  from ._uint8window import AdjustedArrayWindow
label_desc: Use image node_id 7 for calling a global function with example usage: _check_window_params(data, window_length) without return types