code: def prepare_game_plugin(game_name, game_platform):
      plugin_destination_path = f"{offshoot.config['file_paths']['plugins']}/Serpent{game_name}GamePlugin".replace(
          "/", os.sep
      )
  
      shutil.copytree(
          os.path.join(
              os.path.dirname(__file__),
              "templates/SerpentGamePlugin".replace("/", os.sep),
          ),
          plugin_destination_path,
      )
  
      # Plugin Definition
      with open(
          f"{plugin_destination_path}/plugin.py".replace("/", os.sep),
          "r",
      ) as f:
          contents = f.read()
  
      contents = contents.replace(
          "SerpentGamePlugin", f"Serpent{game_name}GamePlugin"
      )
      contents = contents.replace(
          "serpent_game.py", f"serpent_{game_name}_game.py"
      )
  
      with open(
          f"{plugin_destination_path}/plugin.py".replace("/", os.sep),
          "w",
      ) as f:
          f.write(contents)
  
      shutil.move(
          f"{plugin_destination_path}/files/serpent_game.py".replace(
              "/", os.sep
          ),
          f"{plugin_destination_path}/files/serpent_{game_name}_game.py".replace(
              "/", os.sep
          ),
      )
  
      # Game
      with open(
          f"{plugin_destination_path}/files/serpent_{game_name}_game.py".replace(
              "/", os.sep
          ),
          "r",
      ) as f:
          contents = f.read()
  
      contents = contents.replace(
          "SerpentGame", f"Serpent{game_name}Game"
      )
      contents = contents.replace("MyGameAPI", f"{game_name}API")
  
      if game_platform == "steam":
          contents = contents.replace("PLATFORM", "steam")
  
          contents = contents.replace(
              "from serpent.game_launchers.web_browser_game_launcher import WebBrowser",
              "",
          )
          contents = contents.replace(
              'kwargs["executable_path"] = "EXECUTABLE_PATH"', ""
          )
          contents = contents.replace('kwargs["url"] = "URL"', "")
          contents = contents.replace(
              'kwargs["browser"] = WebBrowser.DEFAULT', ""
          )
      elif game_platform == "executable":
          contents = contents.replace("PLATFORM", "executable")
  
          contents = contents.replace(
              "from serpent.game_launchers.web_browser_game_launcher import WebBrowser",
              "",
          )
          contents = contents.replace('kwargs["app_id"] = "APP_ID"', "")
          contents = contents.replace('kwargs["app_args"] = None', "")
          contents = contents.replace('kwargs["url"] = "URL"', "")
          contents = contents.replace(
              'kwargs["browser"] = WebBrowser.DEFAULT', ""
          )
      elif game_platform == "web_browser":
          contents = contents.replace("PLATFORM", "web_browser")
  
          contents = contents.replace('kwargs["app_id"] = "APP_ID"', "")
          contents = contents.replace('kwargs["app_args"] = None', "")
          contents = contents.replace(
              'kwargs["executable_path"] = "EXECUTABLE_PATH"', ""
          )
  
      with open(
          f"{plugin_destination_path}/files/serpent_{game_name}_game.py".replace(
              "/", os.sep
          ),
          "w",
      ) as f:
          f.write(contents)
  
      # Game API
      with open(
          f"{plugin_destination_path}/files/api/api.py".replace(
              "/", os.sep
          ),
          "r",
      ) as f:
          contents = f.read()
  
      contents = contents.replace("MyGameAPI", f"{game_name}API")
  
      with open(
          f"{plugin_destination_path}/files/api/api.py".replace(
              "/", os.sep
          ),
          "w",
      ) as f:
          f.write(contents)
  
imports: import os
  import sys
  import shutil
  import subprocess
  import shlex
  import time
  import offshoot
  from serpent.utilities import clear_terminal, display_serpent_logo, is_linux, is_windows, wait_for_crossbar
  from serpent.window_controller import WindowController
label_desc: Use image node_id 28 for calling a global function with example usage: prepare_game_plugin(game_name, game_platform) without return types