code: def _intshape(shape: Iterable[SupportsInt]) -> tuple[int, ...]:
      # ng.p.Array does not accept np.int64 in shapes, they have to be ints
      return tuple(int(x) for x in shape)
  
imports: from __future__ import annotations
  import logging
  import pickle
  from typing import Callable, Iterable, Sequence, SupportsInt
  from orion.algo.base import BaseAlgorithm
  from orion.algo.space import Categorical, Dimension, Fidelity, Integer, Real, Space
  from orion.core.utils.format_trials import dict_to_trial
  from orion.core.utils.module_import import ImportOptional
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 3 for calling a global function with example usage: _intshape(shape) and returns: tuple