def METHOD_NAME(self):
    buffer = BytesIO()
    with PackageExporter(buffer) as he:
        he.save_text("main", "main", "my string")
        he.save_binary("main", "main_binary", b"my string")
        src = dedent(
            """\
            import importlib
            import torch_package_importer as resources
            t = resources.load_text('main', 'main')
            b = resources.load_binary('main', 'main_binary')
            """
        )
        he.save_source_string("main", src, is_package=True)
    buffer.seek(0)
    hi = PackageImporter(buffer)
    m = hi.import_module("main")
    self.assertEqual(m.t, "my string")
    self.assertEqual(m.b, b"my string")