code: def fromiter(iterable, dtype, count=-1, device=None):
      """Constructs a new 1-D array from an iterable object.
  
      This is currently equivalent to :func:`numpy.fromiter`
      wrapped by :func:`chainerx.array`, given the device argument.
  
      .. seealso:: :func:`numpy.fromiter`
  
      """
      return chainerx.array(
          numpy.fromiter(iterable, dtype=dtype, count=count),
          device=device,
      )
  
file_path: chainer/chainerx/creation/from_data.py
imports: import numpy
  import chainerx
label_desc: Use image node_id 4 for calling a global function with example usage: fromiter(iterable, dtype, count, device) and returns: chainerx