code: def _create_all_commands_and_check_stdout(self, expected_stdout=None):
      with mock.patch(
          "sys.stdout", new_callable=io.StringIO
      ) as mock_stdout:
          (
              commands,
              postprocess_cmds,
              report_commands,
          ) = run_deeptrio.create_all_commands(
              "/tmp/deeptrio_tmp_output"
          )
          # Confirm that these basic commands don't have extra messages printed out
          # to stdout.
          if expected_stdout is None:
              self.assertEmpty(mock_stdout.getvalue())
          else:
              self.assertEqual(mock_stdout.getvalue(), expected_stdout)
      return commands, postprocess_cmds, report_commands
  
imports: import io
  from unittest import mock
  from absl import flags
  from absl.testing import absltest
  from absl.testing import flagsaver
  from absl.testing import parameterized
  from deepvariant.opensource_only.scripts import run_deeptrio
label_desc: Use image node_id 3 for calling the RunDeeptrioTest obj's underlying member method code with example usage: obj._create_all_commands_and_check_stdout(expected_stdout) and returns: commands,  postprocess_cmds,  report_commands