input: def classify_text(text: str) -> str:
      """ Classifies the given text as either 'positive' or 'negative' using a NaiveBayesClassifier.
      >>> classify_text("This is a great movie!")
      'positive'
      >>> classify_text("This movie was terrible")
      'negative'
      """
output:     from textblob.classifiers import NaiveBayesClassifier
      from textblob import TextBlob
  
      # Sample training data
      train_data = [
          ('This is a great movie!', 'positive'),
          ('I love this movie', 'positive'),
          ('This movie was terrible', 'negative'),
          ('I hate this movie', 'negative'),
      ]
  
      # Train the classifier
      classifier = NaiveBayesClassifier(train_data)
  
      # Classify the input text
      blob = TextBlob(text, classifier=classifier)
      return blob.classify()