code: def test_e2e(self, sharded, expected_regions):
      if sharded:
          input_path = testdata.RUNTIME_BY_REGION_SHARDED
      else:
          input_path = testdata.RUNTIME_BY_REGION
  
      html_output = io.StringIO()
      runtime_by_region_vis.make_report(
          input_path=input_path,
          title="my fancy title",
          html_output=html_output,
      )
      html = html_output.getvalue()
      self.assertIn(
          "my fancy title",
          html,
          msg="The title is missing from the HTML.",
      )
      self.assertIn(
          "{} regions".format(expected_regions),
          html,
          msg="The subtitle contains the number of regions.",
      )
      self.assertIn(
          "regions account for",
          html,
          msg="The Pareto curve may be missing or it changed title",
      )
      self.assertIn(
          "bar", html, msg="Vega specs may be missing from the HTML"
      )
      self.assertNotIn(
          "sdlfkjdkjf", html, msg="Negative control failed"
      )
  
imports: import io
  from absl.testing import absltest
  from absl.testing import parameterized
  import pandas
  from deepvariant import runtime_by_region_vis
  from deepvariant import testdata
label_desc: Use image node_id 1 for calling the RuntimeByRegionVisTest obj's underlying member method code with example usage: obj.test_e2e(sharded, expected_regions) without return types