input: Write a python function to extract the title and list items from an HTML document using BeautifulSoup.
  assert extract_html_data('<html><head><title>Test Title</title></head><body><ul><li>Item A</li><li>Item B</li></ul></body></html>') == ('Test Title', ['Item A', 'Item B'])
  assert extract_html_data('<html><head><title>Another Title</title></head><body><ul><li>First</li><li>Second</li><li>Third</li></ul></body></html>') == ('Another Title', ['First', 'Second', 'Third'])
  assert extract_html_data('<html><head><title>Sample</title></head><body><ul><li>Alpha</li><li>Beta</li></ul></body></html>') == ('Sample', ['Alpha', 'Beta'])
output: def extract_html_data(html):
      from bs4 import BeautifulSoup
  
      soup = BeautifulSoup(html, 'html.parser')
      
      # Extract title
      title = soup.title.string if soup.title else ''
      
      # Extract list items
      list_items = [li.get_text() for li in soup.find_all('li')]
      
      return (title, list_items)