code: def test_motifs_len_check(self):
      with pytest.raises(ValueError) as excinfo:
          motifs([1, 2], ([1, 2], [1, 2]))
      assert "Matrix profile is longer than time series." in str(
          excinfo.value
      )
  
file_path: matrixprofile-ts/tests/test_motifs.py
imports: import sys
  from matrixprofile.motifs import *
  import numpy
  import pytest
label_desc: Use image node_id 7 for calling the TestClass obj's underlying member method code with example usage: obj.test_motifs_len_check() without return types