code: def login_with_google(self, email, oauth2_token, **kwargs):
          
          params = {
              'email': email,
              'oauth2_token': oauth2_token
          }
          req_func = self._get
          if kwargs.get('auto_signup', 0) == 1:  # POST if we're creating a user.
              req_func = self._post
          return req_func('login_with_google', params, **kwargs)
docs: Login to Todoist using Google's oauth2 authentication.
  
          :param email: The user's Google email address.
          :type email: str
          :param oauth2_token: The user's Google oauth2 token.
          :type oauth2_token: str
          :param auto_signup: If ``1`` register an account automatically.
          :type auto_signup: int
          :param full_name: The full name to use if the account is registered
              automatically. If no name is given an email based nickname is used.
          :type full_name: str
          :param timezone: The timezone to use if the account is registered
              automatically. If no timezone is given one is chosen based on the
              user's IP address.
          :type timezone: str
          :param lang: The user's language.
          :type lang: str
          :return: The HTTP response to the request.
          :rtype: :class:`requests.Response`
  
          >>> from pytodoist.api import TodoistAPI
          >>> api = TodoistAPI()
          >>> oauth2_token = 'oauth2_token'  # Get this from Google.
          >>> response = api.login_with_google('john.doe@gmail.com',
          ...                                  oauth2_token)
          >>> user_info = response.json()
          >>> full_name = user_info['full_name']
          >>> print(full_name)
          John Doe