Creation of Shadow Root Test Object during runtime

my main question - How to create shadow root test object during runtime similar to what we have for normal object ( object without iframe or shadow root)