code: def test_init_from_config(self) -> None:
      current_dir = os.path.dirname(os.path.abspath(__file__))
      config_path = os.path.join(
          current_dir, "resources/trainer_test_config.yaml"
      )
      trainer = Trainer.from_config(config_path)
      self.assertEqual(10, trainer.max_input_len)
      self.assertEqual(9, trainer.max_output_len)
      self.assertEqual(1, trainer.batch_size)
      self.assertEqual(7, trainer.max_vocab_size_encoder)
      self.assertEqual(6, trainer.max_vocab_size_decoder)
      self.assertEqual("glove.txt", trainer.embedding_path_encoder)
      self.assertEqual(None, trainer.embedding_path_decoder)
      self.assertEqual(4, trainer.steps_per_epoch)
      self.assertEqual("tensor_dir", trainer.tensorboard_dir)
      self.assertEqual("model_save_path", trainer.model_save_path)
      self.assertTrue(trainer.use_bucketing)
      self.assertIsNone(trainer.shuffle_buffer_size)
      self.assertEqual(5, trainer.bucketing_buffer_size_batches)
      self.assertEqual(6, trainer.bucketing_batches_to_bucket)
      self.assertEqual(7, trainer.steps_to_log)
      self.assertEqual(logging.DEBUG, trainer.logger.level)
  
file_path: headliner/tests/test_trainer.py
imports: import tensorflow
  import logging
  import os
  import unittest
  import numpy
  from tensorflow.python.keras.callbacks import Callback
  from headliner.model import AttentionSummarizer
  from headliner.preprocessing.preprocessor import Preprocessor
  from headliner.trainer import Trainer
label_desc: Use image node_id 2 for calling the TestTrainer obj's underlying member method code with example usage: obj.test_init_from_config() without return types