code: def test_to_and_from_json(self):
      tc = TimeController(
          start_time=time.time(),
          total_time_limit=10,
          model_time_limit=None,
          steps=["simple_algorithms"],
          algorithms=["Baseline"],
      )
      tc.log_time("1_Baseline", "Baseline", "simple_algorithms", 123.1)
  
      tc2 = TimeController.from_json(tc.to_json())
  
      assert_almost_equal(tc2.step_spend("simple_algorithms"), 123.1)
      assert_almost_equal(tc2.model_spend("Baseline"), 123.1)
  
file_path: mljar-supervised/tests/tests_tuner/test_time_controller.py
imports: import os
  import time
  import unittest
  from numpy.testing import assert_almost_equal
  from supervised.tuner.time_controller import TimeController
label_desc: Use image node_id 1 for calling the TimeControllerTest obj's underlying member method code with example usage: obj.test_to_and_from_json() without return types