code: def test_regularized_series_max_length(self):
      test_data = pd.DataFrame(
          [0.0, 1.0, 2.0],
          columns=["value"],
          # Make a ridiculous request for 20 years at one-second frequency.
          index=[
              datetime.datetime(2000, 1, 1, hour=0, minute=0, second=0),
              datetime.datetime(2000, 1, 1, hour=0, minute=0, second=1),
              datetime.datetime(2020, 1, 1, hour=0, minute=0, second=0),
          ],
      )
      with self.assertRaisesRegex(
          ValueError, "would exceed the maximum series length"
      ):
          regularization.regularize_series(
              test_data, max_series_length=50000
          )
  
file_path: probability/tensorflow_probability/python/sts/regularization_test.py
imports: import datetime
  from absl.testing import parameterized
  import numpy
  import pandas
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts import regularization
label_desc: Use image node_id 6 for calling the RegularizationTest obj's underlying member method code with example usage: obj.test_regularized_series_max_length() without return types