code: def register_with_google(full_name, email, oauth2_token,
                           lang=None, timezone=None):
      
      response = API.login_with_google(email, oauth2_token, auto_signup=1,
                                       full_name=full_name, lang=lang,
                                       timezone=timezone)
      _fail_if_contains_errors(response)
      user_json = response.json()
      user = User(user_json)
      return user
docs: Register a new Todoist account by linking a Google account.
  
      :param full_name: The user's full name.
      :type full_name: str
      :param email: The user's email address.
      :type email: str
      :param oauth2_token: The oauth2 token associated with the email.
      :type oauth2_token: str
      :param lang: The user's language.
      :type lang: str
      :param timezone: The user's timezone.
      :type timezone: str
      :return: The Todoist user.
      :rtype: :class:`pytodoist.todoist.User`
  
      .. note:: It is up to you to obtain the valid oauth2 token.
  
      >>> from pytodoist import todoist
      >>> oauth2_token = 'oauth2_token'
      >>> user = todoist.register_with_google('John Doe', 'john.doe@gmail.com',
      ...                                      oauth2_token)
      >>> print(user.full_name)
      John Doe