<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_data(self, endpoint="privacy"):
 """Returns policies of DeviantArt"""


        if endpoint == "privacy":
            response = self._req('/data/privacy')
        elif endpoint == "submission":
            response = self._req('/data/submission')
        elif endpoint == "tos":
            response = self._req('/data/tos')
        else:
            raise DeviantartError("Unknown endpoint.")

        return response['text']