docstr: Check if the array is valid.
docstr_tok: ["Check","if","the","array","is","valid","."]
code: def _check_arr(
      arr: np.ndarray, regex_list: Optional[List[str]] = None
  ):
      """Check if the array is valid."""
      assert isinstance(
          arr, np.ndarray
      ), f"Expected np.ndarray, got {type(arr)}"
      assert arr.ndim == 1
      AbstractAggregator._supports_dtype(arr, regex_list)
  
imports: from __future__ import annotations
  import re
  from abc import ABC, abstractmethod
  from typing import List, Optional, Tuple
  import numpy
label_desc: Use image node_id 4 for calling the AbstractAggregator obj's underlying member method code with example usage: obj._check_arr(arr, regex_list) without return types