code: def test_slicing_mkl(fargs_tests, backend_pair_dtype_mkl_32):
      dims = fargs_tests[0]
  
      mkl, cpu = backend_pair_dtype_mkl_32
      dtype = mkl.default_dtype
  
      array_np = np.random.uniform(-1, 1, dims).astype(dtype)
      array_nc = cpu.array(array_np, dtype=dtype)
      array_nm = mkl.array(array_np, dtype=dtype)
  
      assert tensors_allclose(
          array_nm[0], array_nc[0], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[-1], array_nc[-1], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[0, :], array_nc[0, :], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[0:], array_nc[0:], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[:-1], array_nc[:-1], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[:, 0], array_nc[:, 0], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[:, 0:1], array_nc[:, 0:1], rtol=0, atol=1e-3
      )
      assert tensors_allclose(
          array_nm[-1, 0:], array_nc[-1:, 0:], rtol=0, atol=1e-3
      )
  
      array_nc[0] = 0
      array_nm[0] = 0
  
      assert tensors_allclose(array_nm, array_nc, rtol=0, atol=1e-3)
  
imports: from __future__ import print_function
  import numpy
  import itertools
  import pytest
  from utils import tensors_allclose, allclose_with_out
label_desc: Use image node_id 10 for calling a global function with example usage: test_slicing_mkl(fargs_tests, backend_pair_dtype_mkl_32) without return types