code: def get_const_tuple(in_tuple):
      """Verifies input tuple is IntImm or Var, returns tuple of int or Var.
  
      Parameters
      ----------
      in_tuple : tuple of Expr
          The input.
  
      Returns
      -------
      out_tuple : tuple of int
          The output.
      """
      ret = []
      for elem in in_tuple:
          if isinstance(elem, expr.Var):
              ret.append(elem)
          elif not isinstance(elem, (expr.IntImm, int)):
              ana = tvm.arith.Analyzer()
              elem = ana.simplify(elem)
              if not isinstance(elem, (expr.IntImm)):
                  ret.append(elem)
          else:
              ret.append(get_const_int(elem))
      return tuple(ret)
  
file_path: tvm/python/tvm/autotvm/utils.py
imports: import logging
  import time
  import numpy
  import tvm.arith
  from tvm.tir import expr
  from tvm.contrib.popen_pool import PopenPoolExecutor
label_desc: Use image node_id 5 for calling a global function with example usage: get_const_tuple(in_tuple) and returns: tuple