class_docstr: A mixin class to be used in tests for launch code using `serialization`.
class_docstr_tok: ["A","mixin","class","to","be","used","in","tests","for","launch","code","using","`","serialization","`","."]
code: def test_raises_error_on_serialize_py_nodes(self):
      program = self._get_program()
      with self.assertRaisesRegex(
          RuntimeError, "The nodes associated to the label 'my_node'"
      ):
          self._launch(
              program, test_case=self, serialize_py_nodes=True
          ).wait()
  
imports: import functools
  import threading
  from absl.testing import absltest
  import cloudpickle
  from launchpad import program
  from launchpad.launch import serialization
  from launchpad.nodes.python import node
label_desc: Use image node_id 3 for calling the ErrorOnSerializationMixin obj's underlying member method code with example usage: obj.test_raises_error_on_serialize_py_nodes() without return types