code: def test_print_table_max_columns(self):
      table = Table(self.rows, self.column_names, self.column_types)
  
      output = StringIO()
      table.print_table(max_columns=2, output=output)
      lines = output.getvalue().split("\n")
  
      self.assertEqual(len(lines), 6)
      self.assertEqual(len(lines[0]), 23)
  
file_path: agate/tests/test_table/test_print_table.py
imports: from io import StringIO
  from babel.numbers import get_decimal_symbol
  from agate import Table
  from agate.data_types import Number, Text
  from agate.testcase import AgateTestCase
label_desc: Use image node_id 4 for calling the TestPrintTable obj's underlying member method code with example usage: obj.test_print_table_max_columns() without return types