code: def _get_cardinality(search_spaces: numpy.ndarray) -> float:
      return numpy.prod(search_spaces[:, 1] - search_spaces[:, 0])
  
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 1 for calling a global function with example usage: _get_cardinality(search_spaces) and returns: numpy