code: public String[] getOutputsForFunction(DifferentialFunction function) {
          if (!ops.containsKey(function.getOwnName()))
              throw new ND4JIllegalStateException("Illegal function instance id found " + function.getOwnName());
          List<String> outputs = ops.get(function.getOwnName()).getOutputsOfOp();
          return outputs == null ? null : outputs.toArray(new String[outputs.size()]);
      }
docs: Returns the name(s) of the outputs for the given function
  
  @param function the function to get the outputs for
  @return the outputs ids for a given function