code: def is_alive(step, player):
      if len(player.ship_ids):
          alive = True
      else:
          if not len(player.shipyard_ids) or player.halite < 50:
              alive = False
          else:
              alive = True
  
      alive = False if step >= 299 else alive
  
      return alive
  
file_path: PARL/examples/Baselines/Halite_competition/paddle/rl_trainer/utils.py
imports: from zerosum_env.envs.halite.helpers import *
  from collections import deque
  from config import config
  import numpy
  import random
label_desc: Use image node_id 9 for calling a global function with example usage: is_alive(step, player) and returns: alive