Hi,
if everything is as it should be, spanning tree will create a loop free topology.
So one way to intentionally create a loop will be to turn off spanning tree and create a physical loop in the lab topology.
Another option is to create an unidirectional link, i.e. only ONE fiber connecting tx from one prot to rx on another port. This can also generate loops with STP enabled.
You could also configure a port to completely block BPDUs (BPDU filter).
Or you use hubs (without STP) to create the loop.
If you only want a transient loop, then portfast on a port interconnecting switches (no trunk) can achieve this. But it should only last a couple of seconds.
Hope this helps!
Regards, Martin