code: def test_invalid_stats_options(self):
      record_batches = [pa.RecordBatch.from_arrays([])]
      with self.assertRaisesRegexp(
          TypeError, ".*should be a StatsOptions."
      ):
          with beam.Pipeline() as p:
              _ = (
                  p
                  | beam.Create(record_batches)
                  | stats_api.GenerateStatistics(options={})
              )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  from absl.testing import absltest
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import pyarrow
  import tensorflow
  from tensorflow_data_validation.api import stats_api
  from tensorflow_data_validation.utils import artifacts_io_impl
  from tensorflow_data_validation.statistics import stats_options
  from tensorflow_data_validation.utils import io_util
  from tensorflow_data_validation.utils import stats_util
  from tensorflow_data_validation.utils import test_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 6 for calling the StatsAPITest obj's underlying member method code with example usage: obj.test_invalid_stats_options() without return types