docstr: Whether to use Spark barrier mode to launch Ray, which is supported in Spark 2.4+ and when
  dynamic allocation is disabled.
  Default to be True.
docstr_tok: ["Whether","to","use","Spark","barrier","mode","to","launch","Ray",",","which","is","supported","in","Spark","2.4+","and","when","dynamic","allocation","is","disabled",".","Default","to","be","True","."]
code: def barrier_mode(cls):
      """
      Whether to use Spark barrier mode to launch Ray, which is supported in Spark 2.4+ and when
      dynamic allocation is disabled.
      Default to be True.
      """
      return ZooContext.barrier_mode
  
imports: import os
  from bigdl.dllib.nncontext import ZooContext
  from bigdl.dllib.utils.log4Error import *
  import pickle
  import hmac
  import hashlib
label_desc: Use image node_id 13 for calling the OrcaContextMeta obj's underlying member method code with example usage: obj.barrier_mode(cls) and returns: ZooContext