code: def test_quat_ownership():
      # Ensure that users cannot accidentally corrupt object
      quat = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0]])
      r = Rotation.from_quat(quat, normalized=True)
      s = r[0:2]
  
      r._quat[0] = np.array([0, -1, 0, 0])
      assert_allclose(s._quat[0], np.array([1, 0, 0, 0]))
  
imports: from __future__ import division, print_function, absolute_import
  import pytest
  import numpy
  from numpy.testing import assert_equal, assert_array_almost_equal
  from numpy.testing import assert_allclose
  from scipy.spatial.transform import Rotation, Slerp
  from scipy.stats import special_ortho_group
  from itertools import permutations
label_desc: Use image node_id 47 for calling a global function with example usage: test_quat_ownership() without return types