code: def validate_points(points: np.ndarray) -> np.array:
      # If the user is tracking only a single point, reformat it slightly.
      if len(points.shape) == 1:
          points = points[np.newaxis, ...]
      elif len(points.shape) > 2:
          print_detection_error_message_and_exit(points)
      return points
  
file_path: norfair/norfair/utils.py
imports: import os
  from functools import lru_cache
  from logging import warn
  from typing import Sequence, Tuple
  import numpy
  from rich import print
  from rich.console import Console
  from rich.table import Table
label_desc: Use image node_id 1 for calling a global function with example usage: validate_points(points) and returns: points