code: def test_default_container(self):
      # Ensure it is possible to (implicitly) use a shared variable in a
      # function, as a 'state' that can be updated at will.
  
      rng = np.random.default_rng(1827)
      w_init = rng.random(5)
      w = shared(w_init.copy(), "w")
      reg = pt_sum(w * w)
      f = pfunc([], reg)
  
      assert f() == np.sum(w_init * w_init)
      # Change the value of w and ensure the output changes accordingly.
      w.set_value(w.get_value(borrow=True) + 1.0, borrow=True)
      assert f() == np.sum((w_init + 1) ** 2)
  
imports: import numpy
  import pytest
  import pytensor.tensor
  from pytensor.compile import UnusedInputError, get_mode
  from pytensor.compile.function import function, pfunc
  from pytensor.compile.function.pfunc import rebuild_collect_shared
  from pytensor.compile.io import In
  from pytensor.compile.sharedvalue import shared
  from pytensor.configdefaults import config
  from pytensor.graph.utils import MissingInputError
  from pytensor.misc.safe_asarray import _asarray
  from pytensor.tensor.math import sum
  from pytensor.tensor.type import bscalar, bvector, dmatrices, dmatrix, dscalar, dvector, fscalar, fvector, imatrix, iscalar, ivector, ivectors, lscalar, wvector
  from pytensor.utils import PYTHON_INT_BITWIDTH
label_desc: Use image node_id 5 for calling the TestPfunc obj's underlying member method code with example usage: obj.test_default_container() without return types