<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_dataset_end_date_as_datetime(self):
 # type: () -> Optional[datetime] """Get dataset end date as datetime.datetime object. Returns: Optional[datetime.datetime]: Dataset date in datetime object or None if no date is set """

        dataset_date = self.data.get('dataset_date', None)
        if dataset_date:
            if '-' in dataset_date:
                dataset_date = dataset_date.split('-')[1]
                return datetime.strptime(dataset_date, '%m/%d/%Y')
        return None