input: Write a python function to detect plagiarism based on similarity score using TF-IDF vectorizer.
  assert detect_plagiarism("This is a test sentence.", "This is a test sentence.")==True
  assert detect_plagiarism("Completely different text.", "No similarity here.")==False
  assert detect_plagiarism("The quick brown fox jumps over the lazy dog.", "The quick brown fox leaps over the lazy dog.")==True
output: def detect_plagiarism(text1, text2):
      from sklearn.feature_extraction.text import TfidfVectorizer
      from sklearn.metrics.pairwise import cosine_similarity
      
      vectorizer = TfidfVectorizer().fit_transform([text1, text2])
      vectors = vectorizer.toarray()
      
      score = cosine_similarity(vectors)[0, 1]
      
      return score > 0.7