code: def save_weights(self, filename):
      if self.weight_loaded:
          with open(filename, "wb") as of:
              np.save(of, self.weights)
          print("IR weights are saved as [{}].".format(filename))
  
      else:
          print("Warning: weights are not loaded.")
  
file_path: MMdnn/mmdnn/conversion/common/DataStructure/parser.py
imports: import numpy
  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 Parser obj's underlying member method code with example usage: obj.save_weights(filename) without return types