code: def save_caffe2_pb_net(path, model):
      with PathManager.open(path, "wb") as f:
          f.write(model.SerializeToString())
  
imports: import os
  from typing import Dict, List
  from caffe2.python import core, workspace
  from pytext.config import ConfigBase
  from pytext.config.field_config import FeatureConfig, FloatVectorConfig
  from pytext.config.module_config import ExporterType
  from pytext.exporters.exporter import ModelExporter
  from pytext.fields import FieldMeta
  from pytext.utils import mobile_onnx
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: save_caffe2_pb_net(path, model) without return types