code: def test_dt_sorted(self):
      df = pd.DataFrame(
          {
              "datetime": np.array(
                  ["20000101", "20000102", "20000102", "20000101"]
              ),
              "value": np.array([1.9, 2.3, 2.4, 2.6]),
              "id": np.array(["00", "01", "00", "01"]),
          }
      )
  
      tsdata = TSDataset.from_pandas(
          df, target_col="value", dt_col="datetime"
      )
      with pytest.raises(RuntimeError):
          tsdata._check_basic_invariants(strict_check=True)
  
imports: import pytest
  import numpy
  import pandas
  import random
  import tempfile
  import os
  import shutil
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.data import TSDataset
  from pandas.testing import assert_frame_equal
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 29 for calling the TestTSDataset obj's underlying member method code with example usage: obj.test_dt_sorted() without return types