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 = []
      ana = None
      for elem in in_tuple:
          if isinstance(elem, (tvm.tir.Var, tvm.tir.expr.Any)):
              ret.append(elem)
          elif not isinstance(elem, (tvm.tir.IntImm, int)):
              ana = tvm.arith.Analyzer() if ana is None else ana
              elem = ana.simplify(elem)
              if not isinstance(elem, tvm.tir.IntImm):
                  ret.append(elem)
              else:
                  ret.append(get_const_int(elem))
          else:
              ret.append(get_const_int(elem))
      return tuple(ret)
  
imports: from __future__ import absolute_import
  from numbers import Integral
  import numpy
  import tvm
  from tvm import te
  from tvm.tir import Any, SizeVar, bijective_layout, layout
  from .None import cpp, tag
label_desc: Use image node_id 10 for calling a global function with example usage: get_const_tuple(in_tuple) and returns: tuple