code: def _iterable_of_int(x, name=None):
      """Convert ``x`` to an iterable sequence of int
  
      vendored from scipy.fft._pocketfft.helper
  
      Parameters
      ----------
      x : value, or sequence of values, convertible to int
      name : str, optional
          Name of the argument being converted, only used in the error message
  
      Returns
      -------
      y : ``List[int]``
      """
      if isinstance(x, Number):
          x = (x,)
  
      try:
          x = [operator.index(a) for a in x]
      except TypeError as e:
          name = name or "value"
          raise ValueError(
              "{} must be a scalar or iterable of integers".format(name)
          ) from e
  
      return x
  
imports: import itertools
  import math
  from numbers import Number
  import operator
  from .None import numpy_fft
  from ..builders._utils import _default_effort, _default_threads, _cook_nd_args
  from ._utils import _Xfftn
  import numpy
  from scipy.fftpack import diff, tilbert, itilbert, hilbert, ihilbert, cs_diff, sc_diff, ss_diff, cc_diff, shift, fftshift, ifftshift, fftfreq, rfftfreq, convolve
  from ..pyfftw import next_fast_len
label_desc: Use image node_id 1 for calling a global function with example usage: _iterable_of_int(x, name) and returns: x