code: def _get_lgbm_class(cls):
      try:
          return getattr(cls, "_lgbm_class")
      except AttributeError:
          lgbm_class = next(
              base
              for base in cls.__bases__
              if base.__module__.startswith("lightgbm")
          )
          cls._lgbm_class = lgbm_class
          return lgbm_class
  
imports: import enum
  import itertools
  from collections import namedtuple
  import numpy
  import pandas
  from ....dataframe import DataFrame, Series
  from ....tensor import tensor
label_desc: Use image node_id 2 for calling the LGBMScikitLearnBase obj's underlying member method code with example usage: obj._get_lgbm_class(cls) and returns: getattr, lgbm_class