code: def set_func_attr(func, compile_name, symbol_name):
      """
      Helper function to attach attributes to the external function.
      """
      func = func.with_attr("Primitive", tvm.tir.IntImm("int32", 1))
      func = func.with_attr("Inline", tvm.tir.IntImm("int32", 1))
      func = func.with_attr("Compiler", compile_name)
      func = func.with_attr("global_symbol", symbol_name)
      return func
  
file_path: tvm/tests/python/contrib/test_ethosu/test_preprocess.py
imports: import pytest
  import numpy
  import tvm
  from tvm import relay
  from tvm.relay.backend.contrib.ethosu import preprocess
label_desc: Use image node_id 1 for calling a global function with example usage: set_func_attr(func, compile_name, symbol_name) and returns: func