code: def test_use_label_in_node_and_group(self):
      program = lp_program.Program("foo")
      with self.assertRaisesRegexp(
          ValueError, "label does not match the current group"
      ):
          with program.group("foo"):
              program.add_node(
                  mock.Mock(autospec=base.Node), label="bar"
              )
  
      # If the label matches the current group, then it's ok.
      with program.group("foo"):
          program.add_node(mock.Mock(autospec=base.Node), label="foo")
  
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 6 for calling the ProgramTest obj's underlying member method code with example usage: obj.test_use_label_in_node_and_group() without return types