class_docstr: A class for tutel test cases.
class_docstr_tok: ["A","class","for","tutel","test","cases","."]
docstr: Test cpu kernel
docstr_tok: ["Test","cpu","kernel"]
code: def test_cpu_kernel(self):
      """Test cpu kernel"""
      cuda_losses = self.tutelCaller.run(
          nproc_per_node=1,
          num_steps=10,
          device="cuda",
          show_step_time=False,
      )
      cpu_losses = self.tutelCaller.run(
          nproc_per_node=1,
          num_steps=10,
          device="cpu",
          show_step_time=False,
      )
      for i in range(10):
          cuda_losses[i] = round(cuda_losses[i], 2)
          cpu_losses[i] = round(cpu_losses[i], 2)
      self.assertEqual(cuda_losses, cpu_losses)
  
imports: import contextlib
  import io
  import itertools
  import json
  import math
  import os
  import subprocess
  import unittest
  from unittest.mock import patch
label_desc: Use image node_id 2 for calling the TutelTestCase obj's underlying member method code with example usage: obj.test_cpu_kernel() without return types