code: def __str__(self):
      rows = ["Attributes"]
      for name in self._names:
          if name.endswith("_as_tensor"):
              name = name.replace("_as_tensor", "")  # noqa: PLW2901
          rows.append(f"  {name}={getattr(self, name)}")
      return "\n".join(rows)
  
file_path: onnx/onnx/reference/ops/aionnxml/op_tree_ensemble_helper.py
imports: import numpy
label_desc: Use image node_id 3 for calling the TreeEnsembleAttributes obj's underlying member method code with example usage: obj.__str__() and returns: str