code: def test_mutate_data(arr):
      from pybind11_tests.array import mutate_data, mutate_data_t
  
      assert all(mutate_data(arr).ravel() == [2, 4, 6, 8, 10, 12])
      assert all(mutate_data(arr).ravel() == [4, 8, 12, 16, 20, 24])
      assert all(mutate_data(arr, 1).ravel() == [4, 8, 12, 32, 40, 48])
      assert all(
          mutate_data(arr, 0, 1).ravel() == [4, 16, 24, 64, 80, 96]
      )
      assert all(
          mutate_data(arr, 1, 2).ravel() == [4, 16, 24, 64, 80, 192]
      )
  
      assert all(mutate_data_t(arr).ravel() == [5, 17, 25, 65, 81, 193])
      assert all(mutate_data_t(arr).ravel() == [6, 18, 26, 66, 82, 194])
      assert all(
          mutate_data_t(arr, 1).ravel() == [6, 18, 26, 67, 83, 195]
      )
      assert all(
          mutate_data_t(arr, 0, 1).ravel() == [6, 19, 27, 68, 84, 196]
      )
      assert all(
          mutate_data_t(arr, 1, 2).ravel() == [6, 19, 27, 68, 84, 197]
      )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_array.py
imports: import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_mutate_data(arr) without return types