class_docstr: Internal class to handle `wandb_callback` logic.
  
  This callback is adapted form the LightGBM's `_RecordEvaluationCallback`.
class_docstr_tok: ["Internal","class","to","handle","`","wandb_callback","`","logic",".","This","callback","is","adapted","form","the","LightGBM","'s","`","_RecordEvaluationCallback","`","."]
code: def __init__(
      self, log_params: bool = True, define_metric: bool = True
  ) -> None:
      self.order = 20
      self.before_iteration = False
      self.log_params = log_params
      self.define_metric_bool = define_metric
  
file_path: wandb/wandb/integration/lightgbm/__init__.py
imports: from pathlib import Path
  from typing import TYPE_CHECKING, Callable
  import lightgbm
  from lightgbm import Booster
  import wandb
  from wandb.sdk.lib import telemetry
label_desc: Use image node_id 1 to create a new _WandbCallback object  with example: obj = _WandbCallback(log_params, define_metric)