### Question:
Operands { public static Output<?>[] asOutputs(Iterable<? extends Operand<?>> inputs) { List<Output<?>> outputList = new ArrayList<>(); for (Operand<?> input : inputs) { outputList.add(input.asOutput()); } return outputList.toArray(new Output<?>[outputList.size()]); } private  Operands(); static Output<?>[] asOutputs(Iterable<? extends Operand<?>> inputs);  }### Answer:
@Test public void createOutputArrayFromOperandList() { try (Graph g = new Graph()) { Ops tf = Ops.create(g); Split<?> split = tf.split(tf.constant(0), tf.array(0, 1, 2), 3L); Output<?>[] array = Operands.asOutputs(split.output()); assertEquals(split.output().size(), array.length); assertSame(array[0], split.output().get(0)); assertSame(array[1], split.output().get(1)); } }