input: Write a function to filter a list of email addresses and return only those that belong to a specific domain. The function should take a list of email addresses and a domain name as input, and return the filtered 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(["alice@hotmail.com", "david@hotmail.com", "eve@outlook.com"], "hotmail.com")==["alice@hotmail.com", "david@hotmail.com"]
  assert filter_emails(["charlie@yahoo.com", "grace@apple.com"], "apple.com")==["grace@apple.com"]
  assert filter_emails([], "gmail.com")==[]
  assert filter_emails(["john@gmail.com", "sophie@gmail.com"], "yahoo.com")==[]
output: def filter_emails(emails, domain):
      return [email for email in emails if email.endswith(f"@{domain}")]