docstr: Whether to redirect Spark driver JVM's stdout and stderr to the current
  python process. This is useful when running Analytics Zoo in jupyter notebook.
  Default to be False. Needs to be set before initializing SparkContext.
docstr_tok: ["Whether","to","redirect","Spark","driver","JVM","'s","stdout","and","stderr","to","the","current","python","process",".","This","is","useful","when","running","Analytics","Zoo","in","jupyter","notebook",".","Default","to","be","False",".","Needs","to","be","set","before","initializing","SparkContext","."]
code: def log_output(cls):
      """
      Whether to redirect Spark driver JVM's stdout and stderr to the current
      python process. This is useful when running Analytics Zoo in jupyter notebook.
      Default to be False. Needs to be set before initializing SparkContext.
      """
      return cls._log_output
  
imports: from bigdl.util.common import *
  from zoo.common.utils import callZooFunc
  from zoo.util.utils import set_python_home
  import warnings
  import multiprocessing
  import os
  import threading
  import sys
label_desc: Use image node_id 1 for calling the ZooContextMeta obj's underlying member method code with example usage: obj.log_output(cls) and returns: cls