code: def set_extern_modules(cls, pe: PackageExporter) -> None:
      pe.extern(["io", "numpy"])
  
file_path: torchrec/torchrec/inference/tests/model_packager_tests.py
imports: import io
  import tempfile
  import unittest
  import torch.nn
  from torch.package import PackageExporter, PackageImporter
  from torchrec.inference.model_packager import PredictFactoryPackager
  from torchrec.inference.modules import PredictFactory
label_desc: Use image node_id 1 for calling the TestPredictFactoryPackager obj's underlying member method code with example usage: obj.set_extern_modules(cls, pe) without return types