code: def on_algorithm_init(self, *, algorithm, **kwargs):
      self._on_init_was_called = True
  
imports: import tempfile
  import unittest
  import ray
  from ray.rllib.algorithms.appo import APPOConfig
  from ray.rllib.algorithms.callbacks import DefaultCallbacks
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.examples.env.cartpole_crashing import CartPoleCrashing
  from ray.rllib.utils.test_utils import framework_iterator
  from ray import tune
label_desc: Use image node_id 1 for calling the InitAndCheckpointRestoredCallbacks obj's underlying member method code with example usage: obj.on_algorithm_init() without return types