input: Write a python function to roll a dice using the provided API endpoint.
  assert roll_dice() in [f'The dice rolled a {i}!' for i in range(1, 7)]
output: import requests
  
  def roll_dice():
      response = requests.get("http://example.com/api/roll_dice")  # Replace with the actual API endpoint
      if response.status_code == 200:
          dice_value = response.json().get("value")
          if dice_value in range(1, 7):
              return f'The dice rolled a {dice_value}!'
      return 'Error rolling the dice'