class_docstr: A class for tutel test cases.
class_docstr_tok: ["A","class","for","tutel","test","cases","."]
docstr: Test helloworld data parallel and helloworld model parallel which should have same result
docstr_tok: ["Test","helloworld","data","parallel","and","helloworld","model","parallel","which","should","have","same","result"]
code: def test_compare_data_model_parallel(self):
      """Test helloworld data parallel and helloworld model parallel which should have same result"""
      self.assertEqual(
          self.tutelCaller.run(
              nproc_per_node=2,
              helloworld_file="helloworld",
              top=2,
              dtype="float32",
              num_local_experts=-2,
              show_step_time=False,
              use_model_parallel=False,
          ),
          self.tutelCaller.run(
              nproc_per_node=2,
              helloworld_file="helloworld",
              top=2,
              dtype="float32",
              num_local_experts=-2,
              show_step_time=False,
              use_model_parallel=True,
          ),
      )
  
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 12 for calling the TutelTestCase obj's underlying member method code with example usage: obj.test_compare_data_model_parallel() without return types