code: def test_partitions_bad_interval_size_raises(self):
      # list() is necessary to force the generator to execute.
      with self.assertRaisesRegexp(ValueError, "max_size"):
          list(
              ranges.RangeSet(
                  [ranges.make_range("chrM", 0, 100)]
              ).partition(-10)
          )
      with self.assertRaisesRegexp(ValueError, "max_size"):
          list(
              ranges.RangeSet(
                  [ranges.make_range("chrM", 0, 100)]
              ).partition(0)
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import absltest
  from absl.testing import parameterized
  import mock
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 27 for calling the RangesTests obj's underlying member method code with example usage: obj.test_partitions_bad_interval_size_raises() without return types