code: def save(
      name: str,
      model: torch.nn.Module,
      eg: Optional[Tuple] = None,  # pyre-ignore
  ) -> None:
      # pyre-fixme[10]: Name `p` is used but not defined.
      with PackageExporter(str(p / name)) as e:
          e.mock("iopath.**")
          e.intern("**")
          e.save_pickle("model", "model.pkl", model)
          if eg:
              e.save_pickle("model", "example.pkl", eg)
  
imports: import argparse
  from pathlib import Path
  from typing import Optional, Tuple
  import torch
  from torch.package import PackageExporter
label_desc: Use image node_id 1 for calling a global function with example usage: save(name, model, eg) without return types