code: def _check_array_contains_all_integers(
      array: Iterable[int],
      array_max_value: int,
      array_name: str = "Array",
  ) -> None:
      """Check that an array has all numbers between 0 and ``array_max``."""
      if set(array) != set(range(array_max_value)):
          raise ValueError(
              f"``{array_name}`` must contain every integer between 0 and {array_max_value - 1}. "
              + "To override this error, set ``allow_missing_ids`` to True."
          )
  
imports: from abc import ABCMeta, abstractmethod
  import collections
  import random
  import textwrap
  from typing import Any, Iterable, List, Optional, Tuple, Union
  import warnings
  import numpy
  import pandas
  from scipy.sparse import coo_matrix, dok_matrix
  import torch
  from tqdm.auto import tqdm
  import collie
label_desc: Use image node_id 1 for calling a global function with example usage: _check_array_contains_all_integers(array, array_max_value, array_name) without return types