code: def _get_primfuncs_from_module(module):
      primfuncs = list()
      for gv, primfunc in module.functions.items():
          primfuncs.append(primfunc)
      return primfuncs
  
imports: import sys
  import pytest
  import tvm
  from tvm import PoolInfoProperties, WorkspacePoolInfo
  from tvm.script import tir, ir
  from tvm.target import Target
  from tvm.tir import stmt_functor
  from tvm.tir.usmp import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _get_primfuncs_from_module(module) and returns: primfuncs