code: def test_compile_check_workspace_pools(mock_pkg, mock_fe, mock_relay):
      mock_fe.return_value = mock.MagicMock()
      mock_relay.return_value = mock.MagicMock()
      memory_pools = WorkspaceMemoryPools(
          [
              WorkspacePoolInfo(
                  pool_name="sram", targets=[Target("llvm")]
              )
          ]
      )
      tvmc_model = tvmc.load("no_file_needed")
      tvmc.compile(
          tvmc_model,
          target="llvm,c",
          workspace_pools=memory_pools,
      )
  
      assert mock_relay.call_count == 1
      assert (
          mock_relay.call_args_list[0][1]["workspace_memory_pools"]
          == memory_pools
      )
  
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 32 for calling a global function with example usage: test_compile_check_workspace_pools(mock_pkg, mock_fe, mock_relay) without return types