code: def _check_indices(indices, n: int):
      assert (
          indices.dtype == "int32"
      ), "indices should be encoded as 32-bit integers"
  
      if not _values_within_range(indices, 0, n):
          raise IndexError(
              f"index out of bounds, must be >= 0 && < {n}"
          )
  
imports: import operator
  import re
  from collections import defaultdict
  from functools import reduce
  from pathlib import Path
  from typing import Callable, Optional, Tuple
  import numpy
  from ..compat import cupy, has_cupy_gpu
label_desc: Use image node_id 33 for calling a global function with example usage: _check_indices(indices, n) without return types