input: Write a function to filter a list of email addresses to include only those that belong to a particular domain. The function should take a list of email addresses and a domain as input, and return a filtered list of email addresses. If the given list is empty, return an empty list.
  assert filter_emails(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com") == ["john@gmail.com", "sophie@gmail.com"]
  assert filter_emails(["alex@hotmail.com", "jane@hotmail.com"], "yahoo.com") == []
  assert filter_emails([], "gmail.com") == []
output: def filter_emails(emails, domain):
      return [email for email in emails if email.endswith(f"@{domain}")]