code: def user_label(user: User) -> Optional[str]:
      
      if user:
          if user.first_name and user.last_name:
              return user.first_name + ' ' + user.last_name
          else:
              return user.username
  
      return None
docs: Given a user ORM FAB object, returns a label