code: def testInvalidConstruction(self):
      with self.assertRaises(Exception):
          bar.BasicBar(
              datetime.datetime.now(),
              2,
              1,
              1,
              1,
              1,
              1,
              bar.Frequency.DAY,
          )
      with self.assertRaises(Exception):
          bar.BasicBar(
              datetime.datetime.now(),
              1,
              1,
              1,
              2,
              1,
              1,
              bar.Frequency.DAY,
          )
      with self.assertRaises(Exception):
          bar.BasicBar(
              datetime.datetime.now(),
              1,
              2,
              1.5,
              1,
              1,
              1,
              bar.Frequency.DAY,
          )
      with self.assertRaises(Exception):
          bar.BasicBar(
              datetime.datetime.now(),
              2,
              2,
              1.5,
              1,
              1,
              1,
              bar.Frequency.DAY,
          )
      with self.assertRaises(Exception):
          bar.BasicBar(
              datetime.datetime.now(),
              1,
              1,
              1.5,
              1,
              1,
              1,
              bar.Frequency.DAY,
          )
  
file_path: pyalgotrade/testcases/bar_test.py
imports: import datetime
  from six.moves import cPickle
  from .None import common
  from pyalgotrade import bar
label_desc: Use image node_id 1 for calling the BasicBarTestCase obj's underlying member method code with example usage: obj.testInvalidConstruction() without return types