code: def check_point_array(points: Any) -> None:
      if not isinstance(points, np.ndarray):
          raise TypeError(f"Expected numpy array not {type(points)}")
      if points.dtype != point_dtype:
          raise ValueError(
              f"Expected numpy array of dtype {point_dtype} not {points.dtype}"
          )
      if not (
          points.ndim == 2
          and points.shape[1] == 2
          and points.shape[0] > 1
      ):
          raise ValueError(
              f"Expected numpy array of shape (?, 2) not {points.shape}"
          )
  
file_path: catboost/contrib/python/contourpy/contourpy/typecheck.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  import numpy
  from contourpy import FillType, LineType
  from contourpy.enum_util import as_fill_type, as_line_type
  from contourpy.types import MOVETO, code_dtype, offset_dtype, point_dtype
label_desc: Use image node_id 3 for calling a global function with example usage: check_point_array(points) without return types