code: def genfromtxt(*args, **kwargs):
      """This is a wrapper of the official NumPy's `genfromtxt` function.
      Please refer to the documentation here
      https://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html.
  
      Notes
      -----
      This function has added an additional parameter `device` which allows to create
      ndarrays on the user-specified device.
      """
      device = kwargs.pop("device", current_device())
      if device is None:
          device = current_device()
      ret = onp.genfromtxt(*args, **kwargs)
      return array(ret, dtype=ret.dtype, device=device)
  
imports: import numpy
  from ..device import current_device
  from .multiarray import array
label_desc: Use image node_id 1 for calling a global function with example usage: genfromtxt() and returns: array