def METHOD_NAME(self, item, identity_field=None):
    identity = {}
    identity['username'] = None
    identity['email'] = None
    identity['name'] = None
    user = item  # by default a specific user dict is expected
    if isinstance(item, dict) and 'data' in item:
        users = item['data'][identity_field]['users']
        if not users:
            return identity
        else:
            user = users[0]
    if 'login' in user:
        identity['username'] = user['login']
    if 'name' in user:
        identity['name'] = user['name']
    return identity