How can I get test_value in PyMC(PyMC4)?

You’re looking for pm.Model.initial_point.