code: def tupleset(t, i, value):
      l = list(t)
      l[i] = value
      return tuple(l)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  import math
  import warnings
  from numpy import trapz
  from scipy.special import roots_legendre
  from scipy.special import gammaln
  from scipy._lib.six import xrange
label_desc: Use image node_id 5 for calling a global function with example usage: tupleset(t, i, value) and returns: tuple