How can I get the binding ID for something in a sub level sequence?

seems like this example in 5.3 is old method,it cannot work in such as 5.2 5.3version,and in the end i found the right method in the 5.4 examples folder,which can work very well in 5.3 and also 5.2.