code: def unpack_ndindexer(
      indexer: NDIndexer,
  ) -> tuple[
      tuple[bool, ...], tuple[Slice, ...], tuple[IntIndexer, ...]
  ]:
      is_int_indexing = [
          not isinstance(i, Slice) for i in indexer.indices
      ]
      slice_indexers, int_indexers = partition_list(
          is_int_indexing, indexer.indices
      )
      return (
          tuple(is_int_indexing),
          tuple(slice_indexers),
          tuple(int_indexers),
      )
  
imports: from __future__ import annotations
  import dataclasses
  from typing import Any, Union
  from jax._src import core
  from jax._src import tree_util
  from jax._src.typing import Array
  from jax._src.util import merge_lists
  from jax._src.util import partition_list
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: unpack_ndindexer(indexer) and returns: tuple,  tuple,  tuple