code: def to_list(l):
      assert isinstance(l, ConstructorValue)
      val = l
      ret = []
      while True:
          if val.tag == cons.tag:
              ret.append(val.fields[0])
              val = val.fields[1]
          else:
              assert val.tag == nil.tag
              break
      return ret
  
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 3 for calling a global function with example usage: to_list(l) and returns: ret