input: Write a function to filter email addresses 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 that belong to that domain. If the list is empty, the function should 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(["jane@yahoo.com", "sam@hotmail.com", "kim@yahoo.com"], "@yahoo.com")==["jane@yahoo.com", "kim@yahoo.com"]
  assert filter_emails(["alice@microsoft.com", "david@apple.com", "victor@microsoft.com"], "@apple.com")==["david@apple.com"]
  assert filter_emails(["john@gmail.com", "emily@outlook.com"], "@hotmail.com")==[]
  assert filter_emails([], "@yahoo.com")==[]
output: def filter_emails(emails, domain):
      return [email for email in emails if email.endswith(domain)]