code: def is_probability_array(array: np.ndarray) -> bool:
      """
      Check if a multi-dimensional array is an array of probabilities.
  
      :param vector: A numpy array.
      :return: True if it is an array of probabilities.
      """
      if len(array.shape) == 1:
          return is_probability(array)
      sum_array = np.sum(array, axis=1)
      ones = np.ones_like(sum_array)
      is_sum_1 = np.allclose(sum_array, ones, rtol=1e-03)
      is_smaller_1 = np.amax(array) <= 1.0
      is_larger_0 = np.amin(array) >= 0.0
  
      return is_sum_1 and is_smaller_1 and is_larger_0
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import math
  import os
  import shutil
  import sys
  import tarfile
  import warnings
  import zipfile
  from functools import wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Callable, List, Dict, Optional, Tuple, Union
  import numpy
  import six
  from scipy.special import gammainc
  from tqdm.auto import tqdm
  from art import config
label_desc: Use image node_id 43 for calling a global function with example usage: is_probability_array(array) and returns: unknown, is_probability