code: def save_model_to_file(model_name, model, params, output):
      util.mkdir_p(output)
      with open(output + "/" + model_name + ".pb", "wb") as f:
          f.write(model.SerializeToString())
      with open(output + "/" + model_name + ".data", "wb") as f:
          f.write(params)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import datetime
  import os
  import hashlib
  from jinja2 import Environment, FileSystemLoader
  from py_proto import mace_pb2
  from utils import device
  from utils import util
  from utils.util import mace_check
  from utils.util import MaceLogger
  from utils import config_parser
  from utils.config_parser import CPP_KEYWORDS
  from transform.base_converter import MaceKeyword
label_desc: Use image node_id 8 for calling a global function with example usage: save_model_to_file(model_name, model, params, output) without return types