class_docstr: Class for importing LightGBM models.
class_docstr_tok: ["Class","for","importing","LightGBM","models","."]
docstr: Get the decision trees.
  
  :return: A list of decision trees.
docstr_tok: ["Get","the","decision","trees",".",":","return",":","A","list","of","decision","trees","."]
code: def get_trees(self) -> list:
      """
      Get the decision trees.
  
      :return: A list of decision trees.
      """
      from art.metrics.verification_decisions_trees import Box, Tree
  
      booster_dump = self._model.dump_model()["tree_info"]
      trees = []
  
      for i_tree, tree_dump in enumerate(booster_dump):
          box = Box()
  
          # pylint: disable=W0212
          if self._model._Booster__num_class == 2:
              class_label = -1
          else:
              class_label = i_tree % self._model._Booster__num_class
  
          trees.append(
              Tree(
                  class_id=class_label,
                  leaf_nodes=self._get_leaf_nodes(
                      tree_dump["tree_structure"],
                      i_tree,
                      class_label,
                      box,
                  ),
              )
          )
  
      return trees
  
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 7 for calling the LightGBMClassifier obj's underlying member method code with example usage: obj.get_trees() and returns: trees