class_docstr: Redirects the value, unchanged, along a different connection whether the value is above
  or below the given threshold.
  
  :param threshold: the number to compare the input value against. This is also a parameter.
class_docstr_tok: ["Redirects","the","value",",","unchanged",",","along","a","different","connection","whether","the","value","is","above","or","below","the","given","threshold",".",":","param","threshold",":","the","number","to","compare","the","input","value","against",".","This","is","also","a","parameter","."]
docstr: :param threshold: the number to compare the input value against.
docstr_tok: [":","param","threshold",":","the","number","to","compare","the","input","value","against","."]
code: def __init__(self, threshold: int = 10):
      """
      :param threshold: the number to compare the input value against.
      """
      self.threshold = threshold
  
imports: from typing import Optional
  from haystack.core.component import component
label_desc: Use image node_id 1 to create a new Threshold object  with example: obj = Threshold(threshold)