code: def check_failing_token(self, ds_str):
      # Creating the lexer will fail, because the error is
      # in the first token.
      self.assertRaises(
          datashape.DataShapeSyntaxError, list, lexer.lex(ds_str)
      )
  
file_path: datashader/datashader/datashape/tests/test_lexer.py
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from datashader import datashape
  from datashader.datashape import lexer
label_desc: Use image node_id 2 for calling the TestDataShapeLexer obj's underlying member method code with example usage: obj.check_failing_token(ds_str) without return types