class_docstr: Annotate entire graph for Ethos-U offload
class_docstr_tok: ["Annotate","entire","graph","for","Ethos-U","offload"]
code: def visit_call(self, call):
      curr_last = self.last_call
      self.last_call = False
  
      params = []
      for arg in call.args:
          param = super().visit(arg)
          if isinstance(param, relay.expr.Var):
              param = compiler_begin(param, self.compiler)
          params.append(param)
  
      new_call = relay.Call(call.op, params, call.attrs)
      if curr_last:
          new_call = compiler_end(new_call, self.compiler)
      return new_call
  
imports: from typing import List
  import os
  import struct
  import numpy
  import math
  from enum import IntEnum
  import tensorflow
  from ethosu.vela.register_command_stream_generator import CmdMode
  from ethosu.vela.register_command_stream_generator import cmd0
  from ethosu.vela.register_command_stream_generator import cmd1
  import tvm
  from tvm import relay
  import tvm.relay.backend.contrib.ethosu.op
  from tvm.topi.nn.utils import get_pad_tuple
  from tvm.relay.expr_functor import ExprMutator
  from tvm.relay.op.annotation import compiler_begin, compiler_end
  from tvm.relay.backend.contrib.ethosu import preprocess
  import tvm.relay.testing.tf
  from tvm import WorkspaceMemoryPools, WorkspacePoolInfo, PoolInfoProperties
  from tvm.relay.op.contrib.ethosu import partition_for_ethosu
  from tvm.testing.aot import AOTCompiledTestModel, AOTDataLinkage, AOTTestModel, AOTTestRunner, compile_models, run_and_check
label_desc: Use image node_id 2 for calling the EthosUAnnotator obj's underlying member method code with example usage: obj.visit_call(call) and returns: new_call