def _get_legal_actions(self):
        ''' Get all legal actions for current state

        Returns:
            legal_actions (list): a list of legal actions' id
        '''
        legal_actions = self.game.state['actions']
        legal_actions = {self._ACTION_2_ID[action]: _cards2array(action) for action in legal_actions}
        return legal_actions
 Get all legal actions for current state

        Returns:
            legal_actions (list): a list of legal actions' id
        
rlcard/envs/doudizhu.py