class_docstr: A class for tutel test cases.
class_docstr_tok: ["A","class","for","tutel","test","cases","."]
docstr: Test helloworld with top1 gate, float32 dtype and 2 expert(s).
docstr_tok: ["Test","helloworld","with","top1","gate",",","float32","dtype","and","2","expert","(","s",")","."]
code: def test_top1_fp32_2_experts(self):
      """Test helloworld with top1 gate, float32 dtype and 2 expert(s)."""
      for i in range(len(self.data[3]["step_time"])):
          if self.data[3]["step_time"][i]["GPU"] in self.GPUtype:
              print(
                  "\nexpected time:",
                  self.data[3]["step_time"][i]["value"],
              )
      self.assertEqual(
          self.tutelCaller.run(
              nproc_per_node=1,
              helloworld_file="helloworld",
              top=1,
              dtype="float32",
              num_local_experts=2,
          ),
          self.data[3]["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 4 for calling the TutelTestCase obj's underlying member method code with example usage: obj.test_top1_fp32_2_experts() without return types