In all these years of 2 strokes being around, looks like someone would have built a tumbler that the pipe could be mounted in, small odd shaped pointy rocks poured in, ends sealed up & tumble them over night to remove the build up inside.
Few years ago, if your pipe was painted, you could take it to an auto engine rebuilding shop & have then dunk it in their hot costic cleaning vat, but you better wash it off quick & get some oil on it fast before the rust set in.
I've seen some of the uglyest dirtyest engine blocks go in & come out brand new gray iron, clean as a babys butt.
Neil