def METHOD_NAME(filter_id, perm):
    """ multiprocess worker"""
    def func_run():
        """ func_run """
        pid = os.getpid()
        np.random.seed(pid + int(time.time()))
        for batch_examples in self.batch_iter(filter_id, perm):
            batch_dict = self.batch_fn(batch_examples)
            yield batch_dict
    return func_run