code: def save_weights(weights, filename):
      import numpy as np
  
      with open(filename, "wb") as of:
          np.save(of, weights)
      print("Target weights are saved as [{}].".format(filename))
  
file_path: MMdnn/mmdnn/conversion/common/DataStructure/emitter.py
imports: from six import string_types
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
label_desc: Use image node_id 9 for calling the Emitter obj's underlying member method code with example usage: obj.save_weights(weights, filename) without return types