code: def relay_compile_model(tmpdir_factory):
      """Support function that returns a TFLite compiled module"""
  
      def model_compiler(model_file, shape_dict, **overrides):
          package_path = tmpdir_factory.mktemp("data").join("mock.tar")
          tvmc_model = tvmc.frontends.load_model(
              model_file, model_format="relay", shape_dict=shape_dict
          )
          args = {"target": "llvm", **overrides}
          return tvmc.compiler.compile_model(
              tvmc_model, package_path=package_path, **args
          )
  
      # Returns a TVMCPackage
      return model_compiler
  
imports: import os
  import pytest
  import tarfile
  import textwrap
  import numpy
  from PIL import Image
  import tvm
  from tvm import relay
  from tvm.driver import tvmc
  from tvm.contrib.download import download_testdata
label_desc: Use image node_id 12 for calling a global function with example usage: relay_compile_model(tmpdir_factory) and returns: model_compiler, tvmc