code: def HoistAllocates() -> tvm.IRModule:
      """
      Hoist allocate nodes up to the top of the body of the main function.
  
      Returns
      -------
      tvm.IRModule
          The new module with hoisted allocate nodes.
      """
      return _ffi_api.HoistAllocates()
  
imports: from collections import namedtuple
  from typing import Optional
  import numpy
  from ethosu.vela import api
  import tvm
  from tvm.relay.backend.contrib.ethosu import vela_api
  from tvm.relay.backend.contrib.ethosu import tir_to_cs_translator
  from .convolution import get_conv2d_params
  from .depthwise import get_depthwise_conv2d_params
  from .pooling import get_pooling_params
  from .binary_elementwise import get_binary_elementwise_params
  from .identity import get_identity_params
  from .unary_elementwise import get_unary_elementwise_params
  from .transform import get_copy_params
  from .producers_consumers import ProducersConsumers
  from ..None import _ffi_api
label_desc: Use image node_id 8 for calling a global function with example usage: HoistAllocates() and returns: _ffi_api