code: def test_bounds_with_text_rejected_as_the_correct_value_error(
      self,
  ) -> None:
      with pytest.raises(ValueError) as e:
          Range1d(
              1, 2, bounds="21"
          )  # The string is indexable, so this may not fail properly
      assert "expected either None or" in e.value.args[0]
  
imports: from __future__ import annotations
  import pytest
  import datetime
  from math import isnan
  from unittest import mock
  from bokeh.core.validation import check_integrity, process_validation_issues
  from _util_models import check_properties_existence
  from bokeh.models import Range1d, DataRange1d, FactorRange
label_desc: Use image node_id 12 for calling the Test_Range1d obj's underlying member method code with example usage: obj.test_bounds_with_text_rejected_as_the_correct_value_error() without return types