def performAction(self, action): if not self.isFinished(): EpisodicTask.performAction(self, action)
def performAction(self, action): if not self.isFinished(): if type(action) is int: EpisodicTask.performAction(self, self.ACTION_MAPPING[action]) else: EpisodicTask.performAction(self, action)