code: def coreml_compiler(func):
      """
      Create a CoreML runtime from a Relay module.
      """
      assert isinstance(func, tvm.relay.function.Function)
      model_dir = os.getcwd()
      name = str(func.attrs.global_symbol)
      builder = CodegenCoreML(name, func)
      builder.visit(func.body)
      mlmodelc_path = f"{model_dir}/{name}.mlmodelc"
      if os.path.exists(mlmodelc_path):
          shutil.rmtree(mlmodelc_path)
      builder.compile(model_dir)
  
      dev = tvm.cpu(0)
      return coreml_runtime.create(name, mlmodelc_path, dev).module
  
imports: import os
  import shutil
  import tvm._ffi
  from ...relay.expr_functor import ExprVisitor
  from ..None import xcode, coreml_runtime
label_desc: Use image node_id 10 for calling a global function with example usage: coreml_compiler(func) and returns: coreml_runtime