code: def test_view_fortran():
      x = np.asfortranarray(np.arange(64).reshape((8, 8)))
      d = da.from_array(
          cupy.asfortranarray(cupy.array(x)), chunks=(2, 3)
      )
  
      result = d.view("i4", order="F")
      assert type(result._meta) == cupy.ndarray
      assert_eq(
          result, result
      )  # Check that _meta and computed arrays match types
      assert_eq(result, x.T.view("i4").T, check_type=False)
  
      result = d.view("i2", order="F")
      assert type(result._meta) == cupy.ndarray
      assert_eq(
          result, result
      )  # Check that _meta and computed arrays match types
      assert_eq(result, x.T.view("i2").T, check_type=False)
  
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask
  import dask.array
  from dask.array.utils import assert_eq
  from dask.sizeof import sizeof
label_desc: Use image node_id 6 for calling a global function with example usage: test_view_fortran() without return types