code: def test_bundle(self):
      with tempfile.TemporaryDirectory() as tempdir:
          net = UNet(2, 1, 1, [4, 8], [2])
          torch.save(net.state_dict(), tempdir + "/test.pt")
  
          bundle_root = tempdir + "/test_bundle"
  
          cmd = [
              "coverage",
              "run",
              "-m",
              "monai.bundle",
              "init_bundle",
              bundle_root,
              tempdir + "/test.pt",
              "--dataset_license",
              "True",
          ]
          command_line_tests(cmd)
  
          self.assertTrue(
              os.path.exists(bundle_root + "/configs/metadata.json")
          )
          self.assertTrue(
              os.path.exists(bundle_root + "/configs/inference.json")
          )
          self.assertTrue(
              os.path.exists(bundle_root + "/models/model.pt")
          )
          self.assertTrue(os.path.exists(bundle_root + "/LICENSE"))
          self.assertTrue(
              os.path.exists(bundle_root + "/docs/README.md")
          )
          self.assertTrue(
              os.path.exists(bundle_root + "/docs/data_license.txt")
          )
  
file_path: MONAI/tests/test_bundle_init_bundle.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  import torch
  from monai.networks.nets import UNet
  from tests.utils import command_line_tests, skip_if_windows
label_desc: Use image node_id 1 for calling the TestBundleInit obj's underlying member method code with example usage: obj.test_bundle() without return types