code: def test_raise_on_bad_input(self):
      # Make sure it raises exceptions on a few nonsense inputs
      self.assertRaises(TypeError, dshape, None)
      self.assertRaises(TypeError, dshape, lambda x: x + 1)
      # Check issue 11
      self.assertRaises(datashape.DataShapeSyntaxError, dshape, "1 *")
      self.assertRaises(datashape.DataShapeSyntaxError, dshape, "1,")
  
imports: from __future__ import absolute_import, division, print_function
  import ctypes
  import unittest
  import pytest
  from datashader import datashape
  from datashader.datashape import dshape, error, DataShape, Record
label_desc: Use image node_id 1 for calling the TestDataShapeCreation obj's underlying member method code with example usage: obj.test_raise_on_bad_input() without return types