code: def test_global_step(self) -> None:
      with TemporaryDirectory() as tmp_dir:
          writer = SummaryWriter(tmp_dir)
          writer.add_scalar = MagicMock()
          with summary_writer_context(writer):
              SummaryWriterContext.add_scalar("test", torch.ones(1))
              SummaryWriterContext.increase_global_step()
              SummaryWriterContext.add_scalar("test", torch.zeros(1))
          writer.add_scalar.assert_has_calls(
              [
                  call("test", torch.ones(1), global_step=0),
                  call("test", torch.zeros(1), global_step=1),
              ]
          )
          self.assertEqual(2, len(writer.add_scalar.mock_calls))
  
file_path: ReAgent/reagent/test/base/test_tensorboardX.py
imports: import unittest
  from tempfile import TemporaryDirectory
  from unittest.mock import call, MagicMock
  import torch
  from reagent.core.tensorboardX import summary_writer_context, SummaryWriterContext
  from reagent.test.base.horizon_test_base import HorizonTestBase
  from torch.utils.tensorboard import SummaryWriter
label_desc: Use image node_id 8 for calling the TestSummaryWriterContext obj's underlying member method code with example usage: obj.test_global_step() without return types