code: def _get_max_threads(batch_row):
      max_threads = tvm.target.Target.current(
          allow_none=False
      ).max_num_threads
      return tir.min(batch_row, max_threads)
  
imports: from math import pi
  import tvm
  from tvm import te, tir
  from ..utils import ceil_div
label_desc: Use image node_id 1 for calling a global function with example usage: _get_max_threads(batch_row) and returns: tir