@staticmethod
def get_output_filepath(targs, prefix, suffix='txt'):
    """Helper function to generate output filepath"""
    return '%s/%s_worker_%d.%s' % (targs.output_dir, prefix, targs.task_idx,
        suffix)
