code: def test_compile_check_pass_instrument(keras_resnet50):
      pytest.importorskip("tensorflow")
  
      @tvm.instrument.pass_instrument
      class PassesCounter:
          def __init__(self):
              self.run_before_count = 0
              self.run_after_count = 0
  
          def run_before_pass(self, mod, info):
              self.run_before_count = self.run_before_count + 1
  
          def run_after_pass(self, mod, info):
              self.run_after_count = self.run_after_count + 1
  
      passes_counter = PassesCounter()
      tvmc_model = tvmc.load(keras_resnet50)
      tvmc.compile(
          tvmc_model, target="llvm", instruments=[passes_counter]
      )
      assert passes_counter.run_after_count > 0
      assert (
          passes_counter.run_after_count
          == passes_counter.run_before_count
      )
  
imports: import os
  import re
  import numpy
  import shutil
  import tarfile
  from os import path
  from unittest import mock
  import pytest
  import tvm
  from tvm.ir.memory_pools import WorkspacePoolInfo, WorkspaceMemoryPools
  from tvm.target import Target
  import tvm.testing
  from tvm.relay.op.contrib.ethosn import ethosn_available
  from tvm.relay.backend import Runtime, Executor
  from tvm import relay
  from tvm.contrib.target.vitis_ai import vitis_ai_available
  from tvm.driver import tvmc
  from tvm.driver.tvmc.model import TVMCPackage
  from tvm.contrib import utils
label_desc: Use image node_id 33 for calling a global function with example usage: test_compile_check_pass_instrument(keras_resnet50) without return types