code: def test_timeseries_split_error_log():
      # test raised error log that occurs when trying to split TimeSeries at a point outside of the time index range
      times = pd.date_range(start="2000-01-01", periods=3, freq="D")
      values = np.array(range(3))
      ts = TimeSeries.from_times_and_values(times, values)
      with LogCapture() as lc:
          get_logger("darts.timeseries").handlers = []
          try:
              ts.split_after(pd.Timestamp("2020-02-01"))
          except Exception:
              pass
  
      lc.check(
          (
              "darts.timeseries",
              "ERROR",
              "ValueError: Timestamp must be between 2000-01-01 00:00:00 and 2000-01-03 00:00:00",
          )
      )
  
file_path: darts/darts/tests/test_logging.py
imports: import logging
  import re
  import numpy
  import pandas
  import pytest
  import xarray
  from testfixtures import LogCapture
  from darts import TimeSeries
  from darts.logging import get_logger, raise_if_not, raise_log, time_log
label_desc: Use image node_id 5 for calling a global function with example usage: test_timeseries_split_error_log() without return types