code: def test_disable_logging(self) -> None:
      m = _get_m()
      state = m.build_trainer.trainer.state
      self.assertTrue(state.enable_logging)
      with state.disable_logging:
          self.assertFalse(state.enable_logging)
      self.assertTrue(state.enable_logging)
  
file_path: carefree-learn/tests/test_protocol.py
imports: import torch
  import cflearn
  import unittest
  from typing import Any
  from cflearn.schema import ILoss
  from cflearn.pipeline import MLTrainingPipeline
label_desc: Use image node_id 2 for calling the TestProtocol obj's underlying member method code with example usage: obj.test_disable_logging() without return types