code: def test_clear_called_narrow():
      a = nn.NdArray(2, 2)
      assert a.clear_called == False
      a.fill(3)
      assert a.clear_called == False
  
      b = a.narrow(0, 0, 1)
      assert b.clear_called == False
  
      with pytest.raises(RuntimeError):
          b.clear()
  
imports: import numpy
  import nnabla
  import pytest
  from nnabla.ext_utils import get_extension_context
  import nnabla.functions
label_desc: Use image node_id 5 for calling a global function with example usage: test_clear_called_narrow() without return types