code: def test_validtimeseries():
      with pytest.raises(ValueError):
          valid_timeseries(1)
      with pytest.raises(ValueError):
          valid_timeseries(None)
      with pytest.raises(ValueError):
          valid_timeseries(pd.DataFrame())
      with pytest.raises(ValueError):
          valid_timeseries(pd.DataFrame({True: ["a", "b", "c"]}))
      with pytest.raises(ValueError):
          valid_timeseries(pd.DataFrame({1: ["a", "b", "c"]}))
      with pytest.raises(ValueError):
          valid_timeseries(pd.DataFrame({"a": ["a", "b", "c"]}))
      with pytest.raises(ValueError):
          valid_timeseries(pd.DataFrame({"a": [1, 2, 3]}))
      with pytest.raises(ValueError):
          valid_timeseries(
              pd.DataFrame({"a": [1, 2, 3]}, index=[datetime.now()] * 3)
          )
  
file_path: tslumen/tests/unit/profile/test_base.py
imports: import pytest
  from typing import Union
  from dataclasses import is_dataclass
  from datetime import datetime
  import pandas
  from tslumen.profile.base import ProfileException, ProfileResult, ProfilingFunction, BundledProfiler, BundledResult, valid_timeseries
label_desc: Use image node_id 1 for calling a global function with example usage: test_validtimeseries() without return types