input: def filter_emails_by_domain(email_list, domain: str) -> List[str]:
      """
      Filter the list of email addresses to include only those that belong to 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", "sam@hotmail.com", "joe@yahoo.com"], "hotmail.com")
      ['alice@hotmail.com', 'sam@hotmail.com']
      """
      return [email for email in email_list if email.endswith("@" + domain)]
output:     return [email for email in email_list if email.endswith("@" + domain)]