code: def player1():
      game = vzd.DoomGame()
  
      game.load_config(
          os.path.join(vzd.scenarios_path, "multi_duel.cfg")
      )
      game.add_game_args(
          "-host 2 -deathmatch +timelimit 1 +sv_spawnfarthest 1 "
      )
      game.add_game_args("+name Player1 +colorset 0")
  
      # Unfortunately multiplayer game cannot be recorded using new_episode() method, use this command instead.
      game.add_game_args("-record multi_rec.lmp")
  
      game.init()
  
      actions = [
          [True, False, False],
          [False, True, False],
          [False, False, True],
      ]
  
      while not game.is_episode_finished():
          if game.is_player_dead():
              game.respawn_player()
  
          game.make_action(choice(actions))
  
      print("Game finished!")
      print(
          "Player1 frags:",
          game.get_game_variable(vzd.GameVariable.FRAGCOUNT),
      )
      game.close()
  
imports: from multiprocessing import Process
  from random import choice
  import vizdoom
  from vizdoom import DoomGame, os
label_desc: Use image node_id 1 for calling a global function with example usage: player1() without return types