code: def test_as_grad_stopped_view(shape, float_dtype):
      dtype = float_dtype
  
      # Stop gradients on all graphs
      with chainerx.backprop_scope(
          "bp1"
      ) as bp1, chainerx.backprop_scope(
          "bp2"
      ) as bp2, chainerx.backprop_scope(
          "bp3"
      ) as bp3:
          a = array_utils.create_dummy_ndarray(chainerx, shape, dtype)
          a.require_grad(bp1)
          a.require_grad(bp2)
          assert a.is_grad_required(bp1)
          assert a.is_grad_required(bp2)
          assert a.is_backprop_required(bp1)
          assert a.is_backprop_required(bp2)
          b = a.as_grad_stopped(copy=False)
  
          chainerx.testing.assert_array_equal_ex(a, b)
          assert b.device is a.device
          assert not b.is_grad_required(bp1)
          assert not b.is_grad_required(bp2)
          assert not b.is_backprop_required(bp1)
          assert not b.is_backprop_required(bp2)
  
          assert a.is_backprop_required(bp1)
          assert a.is_backprop_required(bp2)
  
          # Stop gradients on some graphs
          a = array_utils.create_dummy_ndarray(chainerx, shape, dtype)
          a.require_grad(bp1)
          a.require_grad(bp2)
          a.require_grad(bp3)
          assert a.is_grad_required(bp1)
          assert a.is_grad_required(bp2)
          assert a.is_grad_required(bp3)
          assert a.is_backprop_required(bp1)
          assert a.is_backprop_required(bp2)
          assert a.is_backprop_required(bp3)
          b = a.as_grad_stopped([bp1, bp2], copy=False)
  
          chainerx.testing.assert_array_equal_ex(a, b)
          assert b.device is a.device
          assert not b.is_grad_required(bp1)
          assert not b.is_grad_required(bp2)
          assert not b.is_grad_required(bp3)
          assert not b.is_backprop_required(bp1)
          assert not b.is_backprop_required(bp2)
          assert b.is_backprop_required(bp3)
  
          assert a.is_grad_required(bp1)
          assert a.is_grad_required(bp2)
          assert a.is_grad_required(bp3)
          assert a.is_backprop_required(bp1)
          assert a.is_backprop_required(bp2)
          assert a.is_backprop_required(bp3)
  
imports: import copy
  import math
  import pickle
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
label_desc: Use image node_id 15 for calling a global function with example usage: test_as_grad_stopped_view(shape, float_dtype) without return types