yt.funcs.
only_on_root
This function accepts a func, a set of args and kwargs and then only on the root processor calls the function. All other processors get “None” handed back.