input: from typing import List
  
  def filter_emails_by_domain(emails: List[str], domain: str) -> List[str]:
      """
      Filter a list of email addresses to include only those that belong to a particular 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']
      """
      return [email for email in emails if email.endswith(domain)]
output:     return [email for email in emails if email.endswith(domain)]