code: def test_add_node(self):
      program = lp_program.Program("foo")
      node_foo = mock.Mock(autospec=base.Node)
      program.add_node(node_foo, "foo")
      node_bar = mock.Mock(autospec=base.Node)
      program.add_node(node_bar, "bar")
      self.assertEqual(program.groups["foo"], [node_foo])
      self.assertEqual(program.groups["bar"], [node_bar])
  
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 1 for calling the ProgramTest obj's underlying member method code with example usage: obj.test_add_node() without return types