code: def test_show_examples_end2end_training_examples(self):
      output_prefix = test_utils.test_tmpfile("training")
      FLAGS.examples = testdata.GOLDEN_TRAINING_EXAMPLES
      FLAGS.output = output_prefix
      show_examples.run()
      ls = glob.glob("{}*".format(output_prefix))
      filenames = [os.path.basename(path) for path in ls]
      self.assertTrue(
          all(["training" in filename for filename in filenames])
      )
      self.assertTrue(
          all([filename.endswith(".png") for filename in filenames])
      )
      self.assertTrue(
          all(["label" in filename for filename in filenames]),
          msg="Training examples should produce labeled images.",
      )
  
imports: import glob
  import os
  from absl import flags
  from absl.testing import absltest
  from absl.testing import flagsaver
  from absl.testing import parameterized
  from deepvariant import show_examples
  from deepvariant import testdata
  from third_party.nucleus.testing import test_utils
label_desc: Use image node_id 2 for calling the ShowExamplesEnd2EndTest obj's underlying member method code with example usage: obj.test_show_examples_end2end_training_examples() without return types