code: def subvals(x, ivs):
      x_ = list(x)
      for i, v in ivs:
          x_[i] = v
      return tuple(x_)
  
imports: import operator
  import sys
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: subvals(x, ivs) and returns: tuple