code: def test_update():
      expected = list(range(10))
      l = nil()
      # create zero initialized list
      for i in range(len(expected)):
          l = cons(make_nat_expr(prelude, 0), l)
  
      # set value
      for i, v in enumerate(expected):
          l = update(l, relay.const(i), make_nat_expr(prelude, v))
  
      got = []
      for i in range(len(expected)):
          got.append(count(eval(nth(l, relay.const(i)))))
  
      assert got == expected
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay import testing
  from tvm.relay.backend.interpreter import ConstructorValue
  from tvm.relay import create_executor
  from tvm.relay.prelude import Prelude, StaticTensorArrayOps
  from tvm.relay.testing import count, make_nat_value, make_nat_expr
  import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: test_update() without return types