input: 
  def filter_emails_by_domain(email_list: List[str], domain: str) -> List[str]:
      """ Filter the given list of email addresses to only include those from the specified domain.
      >>> filter_emails_by_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com")
      ["john@gmail.com", "sophie@gmail.com"]
      >>> filter_emails_by_domain(["alice@hotmail.com", "david@hotmail.com"], "hotmail.com")
      ["alice@hotmail.com", "david@hotmail.com"]
      """
  
output:     filtered_emails = [email for email in email_list if email.endswith(domain)]
      return filtered_emails