Load unloaded references



I have some scenes where the references are in an unloaded state (top level and nested references). I’ve been searching for a script to loop through all of the references but couldn’t find an example. Can any one give me some examples on how this can be done in python please?

Many thanks