code: def log_output(cls, value):
      if SparkContext._active_spark_context is not None:
          msg = (
              "Setting log_output takes no effect after the context has been initialized."
              " You need to set log_output before initializing the context"
              " (e.g., before calling init_orca_context, init_nncontext, etc.)"
          )
          warnings.warn(msg)
      assert isinstance(
          value, bool
      ), "log_output should either be True or False"
      cls._log_output = value
  
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 2 for calling the ZooContextMeta obj's underlying member method code with example usage: obj.log_output(cls, value) without return types