code: def test_getitem():
      x = np.random.rand(1_000_000)
      y = getitem(x, slice(120, 122))
  
      assert y.flags.owndata
      assert not getitem(x, slice(1, None)).flags.owndata
  
      y_op = operator.getitem(x, slice(120, 122))
      assert not y_op.flags.owndata
      assert not operator.getitem(x, slice(1, None)).flags.owndata
  
file_path: dask/dask/array/tests/test_chunk.py
imports: from __future__ import annotations
  import pytest
  import operator
  import numpy
  import dask.array
  from dask.array.chunk import coarsen, getitem, keepdims_wrapper
label_desc: Use image node_id 7 for calling a global function with example usage: test_getitem() without return types