input: Write a python function to calculate the sentiment analysis accuracy for movie reviews.
  assert calculate_accuracy(['I loved this movie, it was amazing!', 'The plot was terrible and acting was worse.'], [1, 0]) == 1.0
  assert calculate_accuracy(['Worst movie ever.', 'An absolute masterpiece!'], [0, 1]) == 1.0
  assert calculate_accuracy(['Not bad, but not great either.', 'I really enjoyed this film.'], [0, 1]) == 0.5
output: def calculate_accuracy(reviews, sentiments):
      from textblob import TextBlob
      
      correct_predictions = 0
      
      for review, actual_sentiment in zip(reviews, sentiments):
          analysis = TextBlob(review)
          predicted_sentiment = 1 if analysis.sentiment.polarity > 0 else 0
          if predicted_sentiment == actual_sentiment:
              correct_predictions += 1
              
      return correct_predictions / len(reviews)