code: def test_create(self):
      body = {
          "figure": {
              "data": [{"y": [10, 10, 2, 20]}],
              "layout": {"width": 700},
          },
          "width": 1000,
          "height": 500,
          "format": "png",
          "scale": 4,
          "encoded": False,
      }
  
      images.create(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/images".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 images
  from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase
label_desc: Use image node_id 2 for calling the ImagesTest obj's underlying member method code with example usage: obj.test_create() without return types