[docs]defsentiment(self,passage:str,threshold_polarity:float=0.0)->Optional[str]:""" Analyzes the sentiment of a given passage using TextBlob. Args: passage (str): The text passage to analyze. threshold_polarity (float, optional): The threshold polarity value. Defaults to 0.0. Returns: Optional[str]: The sentiment of the passage, either "Positive" or "Negative", or None if an error occurs. """try:ifthreshold_polarity<-1.0orthreshold_polarity>1.0:raiseOutOfRangeError(-1.0,1.0)polarity=self.textblob_analyzer(passage).sentiment.polarityifpolarity>threshold_polarity:return"Positive"return"Negative"exceptOutOfRangeErroraserr:print(err.message)returnNone