code: def test_col_create(self):
      cols = [
          {"name": "foo", "data": [1, 2, 3]},
          {"name": "bar", "data": ["b", "a", "r"]},
      ]
      body = {"cols": _json.dumps(cols, sort_keys=True)}
      grids.col_create("hodor:88", body)
      assert self.request_mock.call_count == 1
      args, kwargs = self.request_mock.call_args
      method, url = args
      self.assertEqual(method, "post")
      self.assertEqual(
          url, "{}/v2/grids/hodor:88/col".format(self.plotly_api_domain)
      )
      self.assertEqual(
          kwargs["data"], _json.dumps(body, sort_keys=True)
      )
  
imports: from __future__ import absolute_import
  import json
  from chart_studio.api.v2 import grids
  from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase
label_desc: Use image node_id 10 for calling the GridsTest obj's underlying member method code with example usage: obj.test_col_create() without return types