<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_update_method(self):
 """Return the HTTP method to use. Returns: object: http_put (default) or http_post """

        if getattr(self, '_update_uses_post', False):
            http_method = self.gitlab.http_post
        else:
            http_method = self.gitlab.http_put
        return http_method