def METHOD_NAME(self, should_use_email):
    """
    Helper function that returns either username or email of the user based on given criteria.
    Arguments:
        should_use_email(bool): Flag to identify if the email is to be returned
    Returns:
        username/email depending upon the value of provided flag
    """
    return self.user.email if should_use_email else self.user.username