code: def get_world_feature(board):
      size = board.configuration.size
      me = board.current_player
  
      ships = np.zeros((1, size, size))
      ship_cargo = np.zeros((1, size, size))
      bases = np.zeros((1, size, size))
  
      map_halite = (
          np.array(board.observation["halite"]).reshape(1, size, size)
          / 50
      )
  
      for _, ship in board.ships.items():
          ships[0, size - ship.position[1] - 1, ship.position[0]] = (
              1 if ship.player_id == me.id else -1
          )
          ship_cargo[
              0, size - ship.position[1] - 1, ship.position[0]
          ] = ship.halite
  
      for _, yard in board.shipyards.items():
          bases[
              0,
              size - yard.position[1] - 1,
              size - yard.position[0] - 1,
          ] = (
              1 if yard.player_id == me.id else -1
          )
  
      ship_cargo /= 50
  
      return np.concatenate(
          [map_halite, ships, ship_cargo, bases], axis=0
      )
  
imports: import numpy
  from config import config
  from .utils import transform_position
label_desc: Use image node_id 1 for calling a global function with example usage: get_world_feature(board) and returns: np