code: def test_array_init_from_bytes(
      data_type, dtype, shape, order, mem_type
  ):
      dtype = np.dtype(dtype)
      values = bytes(_get_size_from_shape(shape, dtype)[0])
  
      # Convert to data_type to be tested if needed.
      if data_type != bytes:
          values = data_type(values)
  
      array = CumlArray(
          values,
          dtype=dtype,
          shape=shape,
          order=order,
          mem_type=mem_type,
      )
  
      assert array.order == order
      assert array.shape in (shape, (shape,))
      assert array.dtype == dtype
  
      array_copy = cp.zeros(shape, dtype=dtype)
  
      assert cp.all(cp.asarray(array_copy) == array_copy)
  
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 5 for calling a global function with example usage: test_array_init_from_bytes(data_type, dtype, shape, order, mem_type) without return types