docstr: Should not be called directly by users -- use L{SparkContext.broadcast()}
  instead.
docstr_tok: ["Should","not","be","called","directly","by","users","--","use","L","{","SparkContext.broadcast","(",")","}","instead","."]
code: def __init__(
      self,
      sc=None,
      layer=None,
      pickle_registry=None,
      path=None,
      bigdl_type="float",
  ):
      """
      Should not be called directly by users -- use L{SparkContext.broadcast()}
      instead.
      """
      if layer is not None:
          self.bigdl_type = layer.bigdl_type
      else:
          self.bigdl_type = bigdl_type
      super(ModelBroadcast, self).__init__(
          sc, layer, pickle_registry, path
      )
  
file_path: BigDL/python/dllib/src/bigdl/dllib/models/utils/model_broadcast.py
imports: import os
  import sys
  import gc
  from tempfile import NamedTemporaryFile
  from pyspark.broadcast import Broadcast
  from pyspark.broadcast import _from_id
  from bigdl.dllib.nn.layer import Model
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 1 to create a new ModelBroadcast object from inherited base classes: Broadcast with example: obj = ModelBroadcast(sc, layer, pickle_registry, path, bigdl_type)