code: def save_variable_bigdl(tensors, target_path, bigdl_type="float"):
      """
      Save a variable dictionary to a Java object file, so it can be read by BigDL
  
      :param tensors: tensor dictionary
      :param target_path: where is the Java object file store
      :param bigdl_type: model variable numeric type
      :return: nothing
      """
      import numpy as np
  
      jtensors = {}
      for tn in tensors.keys():
          if not isinstance(tensors[tn], np.ndarray):
              value = np.array(tensors[tn])
          else:
              value = tensors[tn]
          jtensors[tn] = JTensor.from_ndarray(value)
  
      callBigDlFunc(
          bigdl_type, "saveTensorDictionary", jtensors, target_path
      )
  
file_path: BigDL/python/dllib/src/bigdl/dllib/utils/tf_utils.py
imports: import tempfile
  import tensorflow
  import shutil
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import graph_util
  from tensorflow.python.framework import importer
  from tensorflow.python.platform import gfile
  from bigdl.dllib.nn.layer import Model
  from bigdl.dllib.utils.common import JTensor
  from bigdl.dllib.utils.common import callBigDlFunc
  from bigdl.dllib.utils.log4Error import *
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: save_variable_bigdl(tensors, target_path, bigdl_type) without return types