input: Write a python function to scrape contact information from a website and randomly select 10 contacts.
  assert len(scrape_contacts()) == 10
  assert isinstance(scrape_contacts()[0], dict)
  assert 'name' in scrape_contacts()[0]
  assert 'email' in scrape_contacts()[0]
  assert 'phone' in scrape_contacts()[0]
output: import requests
  from bs4 import BeautifulSoup
  import random
  
  def scrape_contacts():
      url = "https://example.com/contacts"  # Replace with the actual URL
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
  
      contacts = []
      for contact in soup.select('.contact'):  # Adjust the selector based on the actual HTML structure
          name = contact.select_one('.name').get_text(strip=True)
          email = contact.select_one('.email').get_text(strip=True)
          phone = contact.select_one('.phone').get_text(strip=True)
          contacts.append({'name': name, 'email': email, 'phone': phone})
  
      return random.sample(contacts, 10)