code: def set_output(kwargs, job, map):
      """Set the __no_output__ flag"""
      if "return_preds" in kwargs:
          if kwargs["return_preds"]:
              __no_output__ = False
          else:
              __no_output__ = True
      else:
          __no_output__ = job == "fit"
          kwargs["return_preds"] = job != "fit"
  
      if not map:
          # Need to ensure outputs always generated for stacking
          __no_output__ = False
  
      return __no_output__
  
file_path: mlens/mlens/parallel/wrapper.py
imports: from ..None import config
  from .base import BaseParallel, OutputMixin
  from .backend import ParallelProcessing
  from ..utils.exceptions import ParallelProcessingError, NotFittedError
label_desc: Use image node_id 5 for calling a global function with example usage: set_output(kwargs, job, map) and returns: __no_output__