code: def subvals(lst, replace):
      lst = list(lst)
      for i, v in replace:
          lst[i] = v
      return tuple(lst)
  
imports: import collections
  import enum
  from functools import partial
  import itertools
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import trax.tf_numpy.extensions
  import trax.tf_numpy.numpy
  from trax.tf_numpy.jax_tests.config import config
  import trax.tf_numpy.jax_tests.test_util
label_desc: Use image node_id 1 for calling a global function with example usage: subvals(lst, replace) and returns: tuple