code: def get_outputs_list(model_file, get_raw_nnet_from_am=True):
      """Generates list of output-node-names used in nnet3 model configuration.
      It will normally return 'output'.
      """
      if get_raw_nnet_from_am:
          outputs_list = common_lib.get_command_stdout(
              "nnet3-am-info --print-args=false {0} | "
              "grep -e 'output-node' | cut -f2 -d' ' | cut -f2 -d'=' ".format(
                  model_file
              )
          )
      else:
          outputs_list = common_lib.get_command_stdout(
              "nnet3-info --print-args=false {0} | "
              "grep -e 'output-node' | cut -f2 -d' ' | cut -f2 -d'=' ".format(
                  model_file
              )
          )
  
      return outputs_list.split()
  
imports: from __future__ import division
  import argparse
  import glob
  import logging
  import os
  import math
  import re
  import shutil
  import libs.common
  from libs.nnet3.train.dropout_schedule import *
  import unittest
label_desc: Use image node_id 1 for calling a global function with example usage: get_outputs_list(model_file, get_raw_nnet_from_am) and returns: outputs_list