code: def _get_all_nodes(self, node):
      ret = [node]
      for key, value in node.children.items():
          ret += self._get_all_nodes(value)
      return ret
  
imports: import copy
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  import keras_tuner
  import numpy
  from autokeras.engine import tuner
label_desc: Use image node_id 4 for calling the Trie obj's underlying member method code with example usage: obj._get_all_nodes(node) and returns: ret