code: def _is_method_retryable(self, method):
          
          if self.method_whitelist and method.upper() not in self.method_whitelist:
              return False
  
          return True
docs: Checks if a given HTTP method should be retried upon, depending if
          it is included on the method whitelist.