class_docstr: An operand for a tflite hint function that is aggregated from many.
  
  For example, an LSTM is a grid of operators that are all related. Inputs
  going into them may need to be fused, so they should all be tracked as
  related arguments.
class_docstr_tok: ["An","operand","for","a","tflite","hint","function","that","is","aggregated","from","many",".","For","example",",","an","LSTM","is","a","grid","of","operators","that","are","all","related",".","Inputs","going","into","them","may","need","to","be","fused",",","so","they","should","all","be","tracked","as","related","arguments","."]
docstr: Return a list of all the node protos in aggregation sorted order.
code: def flatten_nodes(self):
      """Return a list of all the node protos in aggregation sorted order."""
      if not self.flattened:
          self.flattened = [None] * len(self.nodes)
          for idx, node in self.nodes.items():
              self.flattened[idx] = node
          for n in self.nodes:
              if n is None:
                  raise RuntimeError("Aggregate was missing argument.")
          if self.aggregation == OpHint.AGGREGATE_FIRST:
              self.flattened = self.flattened[:1]
          elif self.aggregation == OpHint.AGGREGATE_LAST:
              self.flattened = self.flattened[-1:]
          elif self.aggregation == OpHint.AGGREGATE_STACK:
              pass
          else:
              raise ValueError(
                  "Invalid aggregation type %r specified"
                  % self.aggregation
              )
      return self.flattened
  
imports: import collections
  import copy
  import json
  import uuid
  from tensorflow.core.framework import attr_value_pb2
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import node_def_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework.graph_util_impl import _bfs_for_reachable_nodes
  from tensorflow.python.framework.graph_util_impl import _extract_graph_summary
  from tensorflow.python.ops import array_ops
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.all_util import remove_undocumented
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling the _LiteAggregateOperand obj's underlying member method code with example usage: obj.flatten_nodes() and returns: self