Inspect nodes status by the following modification:
import debug debug.Inspector(self).inspect()
#../script/test clean build cert tests/scripts/thread-cert/Cert_5_1_01_RouterAttach.py
# # 1 > state leader > exit # 2 > panid face > exit # exit
# modeThis is selection mode. You may select the node to inspect here.
list - list available nodes.exit - end inspecting, continue running test case.> mode.> modeThis is node mode. You may run OpenThread CLI here.
exit - go back to # mode.