code: def encrypt(
      model_name,
      model_file,
      params_file,
      output,
      is_obfuscate=False,
      gencode_model=False,
      gencode_params=False,
  ):
      model_checksum = util.file_checksum(model_file)
      params_checksum = util.file_checksum(params_file)
  
      with open(model_file, "rb") as model_file:
          with open(params_file, "rb") as params_file:
              model = mace_pb2.MultiNetDef()
              model.ParseFromString(model_file.read())
              params = bytearray(params_file.read())
  
              if is_obfuscate:
                  for net_def in model.net_def:
                      obfuscate_name(net_def)
              save_model_to_file(model_name, model, params, output)
              if gencode_model:
                  save_model_to_code(
                      model_name,
                      model,
                      params,
                      model_checksum,
                      params_checksum,
                      output + "/code/",
                      gencode_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 9 for calling a global function with example usage: encrypt(model_name, model_file, params_file, output, is_obfuscate, gencode_model, gencode_params) without return types