code: def _calc_num_unique(inc_scan):
      """Helper function to get the number of unique elements fron inc_scan tensor"""
      output = output_tensor((1,), "int32")
      for i in bind("threadIdx.x", 1):
          output[i] = inc_scan[inc_scan.shape[0] - 1] + int32(1)
      return output
  
file_path: tvm/python/tvm/topi/cuda/unique.py
imports: import tvm
  from tvm import te, tir
  from ...te import hybrid
  from .scan import cumsum
  from .sort import sort, argsort
  from ..utils import ceil_div
label_desc: Use image node_id 4 for calling a global function with example usage: _calc_num_unique(inc_scan) and returns: output