code: def _FormatUsername(self, event):
      
      username = self._output_mediator.GetUsername(event)
      return self._SanitizeField(username)
docs: Formats the username.
  
      Args:
        event (EventObject): event.
  
       Returns:
         str: formatted username field.