docstr: Sanity check length and columns of model benchmarks
docstr_tok: ["Sanity","check","length","and","columns","of","model","benchmarks"]
code: def test_model_benchmarks_data(self) -> None:
      """Sanity check length and columns of model benchmarks"""
      model_benchmarks = benchmark.ModelBenchmarks()
      for model in model_benchmarks.models:
          model.epochs = 2
      model_benchmarks.run()
      expected_n_rows = 2 * len(model_benchmarks.models)
      n_rows = model_benchmarks.df.shape[0]
      self.assertEqual(
          n_rows,
          expected_n_rows,
          msg=f"model benchmarks have {n_rows} rows. Expected {expected_n_rows}",
      )
      self.assertTrue(
          all(model_benchmarks.df["seconds per epoch"] > 0),
          msg="seconds per epoch should be greater than 0",
      )
      self.assertTrue(
          all(model_benchmarks.df["inference time"] > 0),
          msg="inference time should be greater than 0",
      )
      self.assertTrue(
          all(model_benchmarks.df["accuracy"] > 0)
          and all(model_benchmarks.df["accuracy"] < 1.0),
          msg="accuracy should be between 0 and 1.0",
      )
  
file_path: CrypTen/test/test_benchmark.py
imports: import unittest
  import crypten
label_desc: Use image node_id 5 for calling the TestBenchmark obj's underlying member method code with example usage: obj.test_model_benchmarks_data() without return types