code: def test_get_all_nodes(self):
      nodes = []
      program = lp_program.Program("test")
      node_foo = mock.Mock(autospec=base.Node)
      nodes.append(node_foo)
      program.add_node(node_foo, "foo")
  
      node_bar = mock.Mock(autospec=base.Node)
      nodes.append(node_bar)
      program.add_node(node_bar, "bar")
  
      with program.group("baz"):
          node_baz = mock.Mock(autospec=base.Node)
          nodes.append(node_baz)
          program.add_node(node_baz)
      self.assertCountEqual(program.get_all_nodes(), nodes)
  
file_path: launchpad/launchpad/program_test.py
imports: from unittest import mock
  from absl.testing import absltest
  from launchpad import program
  from launchpad.nodes import base
label_desc: Use image node_id 9 for calling the ProgramTest obj's underlying member method code with example usage: obj.test_get_all_nodes() without return types