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