code: def _extract_ir_args(args, unknown_args, temp_filename):
      unknown_args.extend(["--srcFramework", args.srcFramework])
      if args.inputWeight is not None:
          unknown_args.extend(["--weights", args.inputWeight])
      if args.inputNetwork is not None:
          unknown_args.extend(["--network", args.inputNetwork])
      unknown_args.extend(["--dstPath", temp_filename])
  
      ir_parser = convertToIR._get_parser()
      return ir_parser.parse_known_args(unknown_args)
  
file_path: MMdnn/mmdnn/conversion/_script/convert.py
imports: import sys
  import argparse
  import mmdnn.conversion._script.convertToIR
  import mmdnn.conversion._script.IRToCode
  import mmdnn.conversion._script.IRToModel
  from six import text_type
  import uuid
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: _extract_ir_args(args, unknown_args, temp_filename) and returns: ir_parser