code: def run_game_with_inputs(inputs):
      # Start the game process
      process = subprocess.Popen(
          ["python", "tic_tac_toe.py"],
          stdin=subprocess.PIPE,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          text=True,
      )
  
      # Send the input moves one by one
      output, errors = process.communicate("\n".join(inputs))
  
      # Print the inputs and outputs
      print("Inputs:\n", "\n".join(inputs))
      print("Output:\n", output)
      print("Errors:\n", errors)
  
      return output
  
imports: import subprocess
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: run_game_with_inputs(inputs) and returns: output