code: def _get_cardinality_batched(
      search_spaces_list: list[numpy.ndarray],
  ) -> float:
      search_spaces = numpy.asarray(search_spaces_list)
      return numpy.prod(
          search_spaces[:, :, 1] - search_spaces[:, :, 0], axis=1
      )
  
imports: from __future__ import annotations
  from functools import lru_cache
  import itertools
  from typing import List
  from typing import Set
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import Union
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _get_cardinality_batched(search_spaces_list) and returns: numpy