code: def test_get_set_item(inp, indices, mem_type):
      mem_type = MemoryType.from_str(mem_type)
      with using_memory_type(mem_type):
          ary = CumlArray(data=inp)
  
          # Assumption required due to limitation on step size for F-order.
          assume(ary.order != "F" or (indices.step in (None, 1)))
  
          # Check equality of array views.
          inp_view = inp[indices]
  
          # Must assume that resulting view must have at least one element to not
          # trigger UnownedMemory exception.
          assume(mem_type.xpy.isscalar(inp_view) or inp_view.size > 0)
  
          _assert_equal(inp_view, ary[indices])
  
          # Check equality after assigning to array slice.
          ary[indices] = 1.0
          inp[indices] = 1.0
  
          # We need to assume that inp is not a cudf.Series here, otherwise
          # ary.to_output("cupy") called by equal() will trigger a
          # CUDARuntimeError: cudaErrorInvalidDevice: invalid device ordinal
          # error.
          assume(not isinstance(inp, cudf.Series))
  
          _assert_equal(inp, ary)
  
imports: import gc
  import operator
  import pickle
  import pytest
  from copy import deepcopy
  from cuml.internals.array import CumlArray, _order_to_strides, array_to_memory_order
  from cuml import global_settings
  from cuml.internals.mem_type import MemoryType
  from cuml.internals.memory_utils import _get_size_from_shape, determine_array_memtype, using_memory_type
  from cuml.internals.safe_imports import cpu_only_import, cpu_only_import_from, gpu_only_import, gpu_only_import_from
  from cuml.testing.strategies import UNSUPPORTED_CUDF_DTYPES, create_cuml_array_input, cuml_array_dtypes, cuml_array_input_types, cuml_array_inputs, cuml_array_orders, cuml_array_output_types, cuml_array_shapes, cuml_array_mem_types
  from cuml.testing.utils import normalized_shape, series_squeezed_shape, squeezed_shape, to_nparray
  from hypothesis import assume, given, settings
  from hypothesis import strategies
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_set_item(inp, indices, mem_type) without return types