class_docstr: A tree built by XGBoost.
docstr: Whether a node is leaf.
docstr_tok: ["Whether","a","node","is","leaf","."]
code: def is_leaf(self, node_id: int) -> bool:
      """Whether a node is leaf."""
      return self.nodes[node_id].left == -1
  
imports: import argparse
  import json
  from dataclasses import dataclass
  from enum import IntEnum, unique
  from typing import Any, Dict, List, Sequence, Union
  import numpy
label_desc: Use image node_id 13 for calling the Tree obj's underlying member method code with example usage: obj.is_leaf(node_id) and returns: unknown