code: def player2():
      game = vzd.DoomGame()
  
      game.load_config(config)
  
      # Join existing game
      game.add_game_args("-join 127.0.0.1")
  
      # Use additional arguments to set player name, color and window position
      game.add_game_args(
          f"+name Player2 +colorset 3 +win_x {win_x + game.get_screen_width()} +win_y {win_y}"
      )
  
      game.init()
  
      actions = [
          [True, False, False],
          [False, True, False],
          [False, False, True],
      ]
  
      for i in range(episodes):
          while not game.is_episode_finished():
              if game.is_player_dead():
                  game.respawn_player()
  
              game.make_action(choice(actions))
  
          print(
              "Player2 frags:",
              game.get_game_variable(vzd.GameVariable.FRAGCOUNT),
          )
          game.new_episode()
  
      game.close()
  
imports: import os
  from random import choice
  from threading import Thread
  from time import time
  import vizdoom
label_desc: Use image node_id 2 for calling a global function with example usage: player2() without return types