<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def entity(self) -> dict: """ parse self into dictionary """
    
        image = {}
        image['PartitionKey'] = self.getPartitionKey()
        image['RowKey'] = self.getRowKey()
        for key, value in vars(self).items():
            if not key.startswith('_') and key not in ['','PartitionKey','RowKey']:
                if type(value) in [str, int, bool, datetime.date, datetime.datetime]:
                    image[key] = value                    
        return image