class_docstr: Configuration class for PPOTrainer
class_docstr_tok: ["Configuration","class","for","PPOTrainer"]
code: def to_dict(self):
      output_dict = {}
      for key, value in self.__dict__.items():
          output_dict[key] = value
      return flatten_dict(output_dict)
  
file_path: trl/trl/trainer/ppo_config.py
imports: import json
  import os
  import sys
  import warnings
  from dataclasses import dataclass, field
  from typing import Literal, Optional
  import numpy
  import tyro
  from typing_extensions import Annotated
  from trl.trainer.utils import exact_div
  from ..core import flatten_dict
  from ..import_utils import is_wandb_available
label_desc: Use image node_id 2 for calling the PPOConfig obj's underlying member method code with example usage: obj.to_dict() and returns: flatten_dict