code: def test_backprop_sole_array_node(method):
      shape = (1,)
      dtype = chainerx.float32
  
      x = chainerx.full(shape, 2, dtype).require_grad()
      expected_gx = chainerx.full(shape, 1, dtype)
  
      if method == "backward":
          chainerx.backward(x)
          gx = x.get_grad()
      elif method == "grad":
          (gx,) = chainerx.grad([x], [x])
      else:
          assert False
  
      _assert_arrays_equal(gx, expected_gx)
  
imports: import chainerx
  import pytest
label_desc: Use image node_id 11 for calling a global function with example usage: test_backprop_sole_array_node(method) without return types