code: def test_compile_keras__save_module(keras_resnet50, tmpdir_factory):
      # some CI environments wont offer tensorflow/Keras, so skip in case it is not present
      pytest.importorskip("tensorflow")
  
      expected_temp_dir = tmpdir_factory.mktemp("saved_output")
      expected_file_name = "saved.tar"
      module_file = os.path.join(expected_temp_dir, expected_file_name)
  
      tvmc_model = tvmc.load(keras_resnet50)
      tvmc.compile(
          tvmc_model,
          target="llvm",
          dump_code="ll",
          package_path=module_file,
      )
  
      assert os.path.exists(
          module_file
      ), "output file {0} should exist".format(module_file)
  
      # Test that we can load back in a module.
      tvmc_package = TVMCPackage(package_path=module_file)
      assert type(tvmc_package.lib_path) is str
      assert type(tvmc_package.graph) is str
      assert type(tvmc_package.params) is bytearray
  
imports: import os
  import re
  import numpy
  import shutil
  import tarfile
  from os import path
  from unittest import mock
  import pytest
  import tvm
  from tvm.ir.memory_pools import WorkspacePoolInfo, WorkspaceMemoryPools
  from tvm.target import Target
  import tvm.testing
  from tvm.relay.op.contrib.ethosn import ethosn_available
  from tvm.relay.backend import Runtime, Executor
  from tvm import relay
  from tvm.contrib.target.vitis_ai import vitis_ai_available
  from tvm.driver import tvmc
  from tvm.driver.tvmc.model import TVMCPackage
  from tvm.contrib import utils
label_desc: Use image node_id 12 for calling a global function with example usage: test_compile_keras__save_module(keras_resnet50, tmpdir_factory) without return types