code: def test_missing_memory_pools():
      """
      The cascader requires memory pools to be present, check the correct error
      is thrown when there aren't any.
      """
      np.random.seed(2)
      ifm_shape = (1, 80, 75, 3)
  
      (
          target,
          _,
          runtime,
          executor,
          pass_config,
      ) = _get_compilation_config("ethos-u55-256", True, True)
  
      @tf.function
      def tf_graph(x):
          return tf.nn.max_pool(x, (3, 3), (1, 1), "SAME")
  
      _, tflite_graph = infra.get_tflite_graph(tf_graph, [ifm_shape])
      tflite_model = tflite.Model.Model.GetRootAsModel(tflite_graph, 0)
      relay_module, params = relay.frontend.from_tflite(tflite_model)
      mod = partition_for_ethosu(relay_module, params)
  
      with pytest.raises(ValueError) as e:
          with tvm.transform.PassContext(
              opt_level=3, config=pass_config
          ):
              tvm.relay.build(
                  mod,
                  target,
                  executor=executor,
                  runtime=runtime,
                  workspace_memory_pools=None,
                  params=params,
              )
  
      expected_reason = "Workspace memory pool needs to be provided for the U55 cascader"
      on_error = "A ValueError was caught but its reason is not the expected one."
      assert expected_reason in str(e.value), on_error
  
file_path: tvm/tests/python/contrib/test_ethosu/cascader/test_memory_reduction.py
imports: import pytest
  import numpy
  import tensorflow
  import tflite.Model
  from tvm import relay
  from tvm.relay.backend import Executor, Runtime
  from tvm.micro import model_library_format
  from tvm.relay.op.contrib.ethosu import partition_for_ethosu
  import tvm
  from tvm import WorkspaceMemoryPools, WorkspacePoolInfo, PoolInfoProperties
  from tvm.relay.backend.contrib.ethosu.codegen import extract_memory_info
  from ..None import infra
label_desc: Use image node_id 6 for calling a global function with example usage: test_missing_memory_pools() and returns: tf