<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_extracted(self, file_path):
 """ Check if the data file is already extracted. """


        if os.path.isdir(file_path):
            self.chatbot.logger.info('File is already extracted')
            return True
        return False