code: def __init__(self, game=None):
      self.game = game
  
      if not self.game.is_launched:
          self.game.launch(dry_run=True)
  
      self.input_controller = InputController(
          game=game, backend=game.input_controller
      )
  
      self.game_inputs = dict()
  
      self.__class__.instance = self
  
imports: from serpent.input_controller import InputController
  from serpent.utilities import SerpentError
  import itertools
label_desc: Use image node_id 1 to create a new GameAPI object  with example: obj = GameAPI(game)