code: def test_subprocess_communicate_stdout(self):
      # See https://github.com/python/cpython/issues/100133
      async def get_command_stdout(cmd, *args):
          proc = await asyncio.create_subprocess_exec(
              cmd,
              *args,
              stdout=asyncio.subprocess.PIPE,
          )
          stdout, _ = await proc.communicate()
          return stdout.decode().strip()
  
      async def main():
          outputs = [f"foo{i}" for i in range(10)]
          res = await asyncio.gather(
              *[
                  get_command_stdout(
                      sys.executable, "-c", f"print({out!r})"
                  )
                  for out in outputs
              ]
          )
          self.assertEqual(res, outputs)
  
      self.loop.run_until_complete(main())
  
imports: import os
  import signal
  import sys
  import textwrap
  import unittest
  import warnings
  from unittest import mock
  import asyncio
  from asyncio import base_subprocess
  from asyncio import subprocess
  from test.test_asyncio import utils
  from test import support
  from test.support import os_helper
label_desc: Use image node_id 34 for calling the SubprocessMixin obj's underlying member method code with example usage: obj.test_subprocess_communicate_stdout() and returns: stdout