code: def fromfile(*args, **kwargs):
      """Reads an array from a file.
  
      .. note::
          Uses NumPy's ``fromfile`` and coerces the result to a CuPy array.
  
      .. note::
         If you let NumPy's ``fromfile`` read the file in big-endian, CuPy
         automatically swaps its byte order to little-endian, which is the NVIDIA
         and AMD GPU architecture's native use.
  
      .. seealso:: :func:`numpy.fromfile`
  
      """
      return asarray(numpy.fromfile(*args, **kwargs))
  
file_path: cupy/cupy/_creation/from_data.py
imports: import numpy
  from cupy import _core
  from cupy._core import fusion
label_desc: Use image node_id 7 for calling a global function with example usage: fromfile() and returns: asarray