input: Write a python function to connect to an SQLite database, execute a set of queries, and return the results.
  assert fetch_data("mydatabase.db") == {"total_entries": 10, "average_value": 42.0, "unique_values": [('A',), ('B',), ('C',)]}
  assert fetch_data("anotherdatabase.db") == {"total_entries": 5, "average_value": 25.0, "unique_values": [('X',), ('Y',)]}
output: import sqlite3
  
  def fetch_data(db_name):
      conn = sqlite3.connect(db_name)
      cursor = conn.cursor()
      
      # Execute a query to count total entries
      cursor.execute("SELECT COUNT(*) FROM my_table")
      total_entries = cursor.fetchone()[0]
      
      # Execute a query to calculate the average value
      cursor.execute("SELECT AVG(value) FROM my_table")
      average_value = cursor.fetchone()[0]
      
      # Execute a query to get unique values
      cursor.execute("SELECT DISTINCT(column_name) FROM my_table")
      unique_values = cursor.fetchall()
      
      conn.close()
      
      return {
          "total_entries": total_entries,
          "average_value": average_value,
          "unique_values": unique_values
      }