This is quite a cheap answer but maybe it’s just pseudo code. We had exercises in university about pseudo code with examples that intentionally broke all syntax systems and conventions to show that not everything has to be executable that you write down in a theoretical computer science homework
Well, it does the job. No need to reinvent the wheel and for people who don’t know the packages, this is helpful