code: def testConstructWithSchemaAndStatsOptions(self):
      examples = standard_artifacts.Examples()
      examples.split_names = artifact_utils.encode_split_names(
          ["train", "eval"]
      )
      schema = standard_artifacts.Schema()
      stats_options = tfdv.StatsOptions(weight_feature="weight")
      statistics_gen = component.StatisticsGen(
          examples=channel_utils.as_channel([examples]),
          schema=channel_utils.as_channel([schema]),
          stats_options=stats_options,
      )
      self.assertEqual(
          standard_artifacts.ExampleStatistics.TYPE_NAME,
          statistics_gen.outputs[
              standard_component_specs.STATISTICS_KEY
          ].type_name,
      )
  
file_path: tfx/tfx/components/statistics_gen/component_test.py
imports: import tensorflow
  import tensorflow_data_validation
  from tfx.components.statistics_gen import component
  from tfx.types import artifact_utils
  from tfx.types import channel_utils
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
label_desc: Use image node_id 2 for calling the ComponentTest obj's underlying member method code with example usage: obj.testConstructWithSchemaAndStatsOptions() without return types