docstr: Save the compiled model into onnx file format.
docstr_tok: ["Save","the","compiled","model","into","onnx","file","format","."]
code: def save(model, path: str) -> str:
      """Save the compiled model into onnx file format."""
      os.makedirs(os.path.dirname(path), exist_ok=True)
      with open(os.path.join(path, "model.onnx"), "wb") as f:
          f.write(model.SerializeToString())
      return os.path.join(path, "model.onnx")
  
file_path: autogluon/tabular/src/autogluon/tabular/models/rf/compilers/onnx.py
imports: import os
  import numpy
label_desc: Use image node_id 3 for calling the RFOnnxCompiler obj's underlying member method code with example usage: obj.save(model, path) and returns: os