def METHOD_NAME(self, response):
    """Return user details from Linkedin account"""
    def get_localized_name(name):
        """
        FirstName & Last Name object
        {
              'localized': {
                 'en_US': 'Smith'
              },
              'preferredLocale': {
                 'country': 'US',
                 'language': 'en'
              }
        }
        :return the localizedName from the lastName object
        """
        locale = "{}_{}".format(
            name["preferredLocale"]["language"], name["preferredLocale"]["country"]
        )
        return name["localized"].get(locale, "")
    fullname, first_name, last_name = self.get_user_names(
        first_name=get_localized_name(response["firstName"]),
        last_name=get_localized_name(response["lastName"]),
    )
    email = response.get("emailAddress", "")
    return {
        "username": first_name + last_name,
        "fullname": fullname,
        "first_name": first_name,
        "last_name": last_name,
        "email": email,
    }