code: def game_is_finished(state):
      """Tells if the game is finished or not.
  
      Args:
          state (torch.Tensor): The state of the game.
      """
      # state size (1, S, S, S)
      return (state == 0).all()
  
file_path: nebuly/optimization/open_alpha_tensor/open_alpha_tensor/core/actors/stage.py
imports: from typing import Dict, List
  import torch
  from open_alpha_tensor.core.data.utils import get_scalars, map_action_to_triplet
  from open_alpha_tensor.core.modules.alpha_tensor import AlphaTensorModel
label_desc: Use image node_id 1 for calling a global function with example usage: game_is_finished(state) and returns: unknown