code: def fromfile(file, dtype=float, count=-1, sep="", device=None):
      """Constructs an array from data in a text or binary file.
  
      This is currently equivalent to :func:`numpy.fromfile`
      wrapped by :func:`chainerx.array`, given the device argument.
  
      .. seealso:: :func:`numpy.fromfile`
  
      """
      return chainerx.array(
          numpy.fromfile(file, dtype=dtype, count=count, sep=sep),
          device=device,
      )
  
file_path: chainer/chainerx/creation/from_data.py
imports: import numpy
  import chainerx
label_desc: Use image node_id 2 for calling a global function with example usage: fromfile(file, dtype, count, sep, device) and returns: chainerx