class_docstr: Class for importing LightGBM models.
class_docstr_tok: ["Class","for","importing","LightGBM","models","."]
code: def _get_leaf_nodes(
      self, node, i_tree, class_label, box
  ) -> List["LeafNode"]:
      from art.metrics.verification_decisions_trees import (
          Box,
          Interval,
          LeafNode,
      )
  
      leaf_nodes: List[LeafNode] = []
  
      if "split_index" in node:
          node_left = node["left_child"]
          node_right = node["right_child"]
  
          box_left = deepcopy(box)
          box_right = deepcopy(box)
  
          feature = node["split_feature"]
          box_split_left = Box(
              intervals={feature: Interval(-np.inf, node["threshold"])}
          )
          box_split_right = Box(
              intervals={feature: Interval(node["threshold"], np.inf)}
          )
  
          if box.intervals:
              box_left.intersect_with_box(box_split_left)
              box_right.intersect_with_box(box_split_right)
          else:
              box_left = box_split_left
              box_right = box_split_right
  
          leaf_nodes += self._get_leaf_nodes(
              node_left, i_tree, class_label, box_left
          )
          leaf_nodes += self._get_leaf_nodes(
              node_right, i_tree, class_label, box_right
          )
  
      if "leaf_index" in node:
          leaf_nodes.append(
              LeafNode(
                  tree_id=i_tree,
                  class_label=class_label,
                  node_id=node["leaf_index"],
                  box=box,
                  value=node["leaf_value"],
              )
          )
  
      return leaf_nodes
  
file_path: adversarial-robustness-toolbox/art/estimators/classification/lightgbm.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from copy import deepcopy
  import logging
  import os
  import pickle
  from typing import List, Optional, Union, Tuple, TYPE_CHECKING
  import numpy
  from art.estimators.classification.classifier import ClassifierDecisionTree
  from art import config
label_desc: Use image node_id 8 for calling the LightGBMClassifier obj's underlying member method code with example usage: obj._get_leaf_nodes(node, i_tree, class_label, box) and returns: leaf_nodes