code: def compute_loop_outputs(x, seq, trip_count):  # type: ignore
      for i in range(trip_count):
          if seq is None:
              seq = []
          seq += [x[: int(i + 1)]]
      return seq
  
file_path: onnx/onnx/backend/test/case/node/loop.py
imports: from typing import Any, List
  import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 1 for calling a global function with example usage: compute_loop_outputs(x, seq, trip_count) and returns: seq