How to implement reuse/nested steps in offline mode?

how to implement reuse/nested steps in offline mode?

Have a look at here.
Is it possible to run the offline test with docker container? - #5 by nithish.u

Thanks
NU