input: def filter_emails_by_domain(email_list: list, domain: str) -> list:
      """
      Filters a list of email addresses to return only those belonging to a specific 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", "jim@outlook.com", "lisa@hotmail.com"], "@hotmail.com")
      ['alice@hotmail.com', 'lisa@hotmail.com']
      """
output:     filtered_emails = [email for email in email_list if email.endswith(domain)]
      return filtered_emails