code: def asfortranarray(a, dtype=None):
      """Return an array laid out in Fortran order in memory.
  
      Args:
          a (~cupy.ndarray): The input array.
          dtype (str or dtype object, optional): By default, the data-type is
              inferred from the input data.
  
      Returns:
          ~cupy.ndarray: The input `a` in Fortran, or column-major, order.
  
      .. seealso:: :func:`numpy.asfortranarray`
  
      """
      return _core.asfortranarray(a, dtype)
  
imports: import cupy
  from cupy import _core
label_desc: Use image node_id 3 for calling a global function with example usage: asfortranarray(a, dtype) and returns: _core