class_docstr: Decreases the initial value in steps of 1 until the target value is reached.
  For no good reason it uses a self-loop to do so :)
class_docstr_tok: ["Decreases","the","initial","value","in","steps","of","1","until","the","target","value","is","reached",".","For","no","good","reason","it","uses","a","self-loop","to","do","so",":",")"]
docstr: Decreases the input value in steps of 1 until the target value is reached.
docstr_tok: ["Decreases","the","input","value","in","steps","of","1","until","the","target","value","is","reached","."]
code: def run(self, values: Variadic[int]):
      """
      Decreases the input value in steps of 1 until the target value is reached.
      """
      value = values[0]  # type: ignore
      value -= 1
      if value == self.target:
          return {"final_result": value}
      return {"current_value": value}
  
imports: from haystack.core.component import component
  from haystack.core.component.types import Variadic
label_desc: Use image node_id 2 for calling the SelfLoop obj's underlying member method code with example usage: obj.run(values) and returns: dict, dict