def METHOD_NAME(self):
    r = self.client.get('/api/projects/%i/tasks' % self.project_id, headers={'Authorization': f'Token {self.client.token}'}, name='/api/projects/<id>/tasks')
    tasks_list = r.json()
    if len(tasks_list):
        any_task = random.choice(tasks_list)
        payload = json.dumps({"result": [{"type": "choices", "from_name": "my_class", "to_name": "my_text", "value": {"choices": [random.choice(['pos', 'neg'])]}}]})
        headers = {'content-type': 'application/json', 'Authorization': f'Token {self.client.token}'}
        self.client.post('/api/tasks/%i/annotations' % any_task["id"], payload, headers=headers, name='/api/tasks/<id>/annotations')