code: def _iterable_of_int(x, name=None):
      """Convert ``x`` to an iterable sequence of int
  
      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(
              f"{name} must be a scalar or iterable of integers"
          ) from e
  
      return x
  
file_path: scipy/scipy/fft/_pocketfft/helper.py
imports: from numbers import Number
  import operator
  import os
  import threading
  import contextlib
  import numpy
  from .pypocketfft import good_size
label_desc: Use image node_id 1 for calling a global function with example usage: _iterable_of_int(x, name) and returns: x