code: def test_request_with_ConnectionError(self):
      # requests can flake out and not return a response object, we want to
      # make sure we remain consistent with our errors.
  
      self.request_mock.side_effect = ConnectionError()
      self.assertRaises(
          PlotlyRequestError, utils.request, self.method, self.url
      )
  
imports: from __future__ import absolute_import
  import json
  from requests.exceptions import ConnectionError
  from plotly import version
  from chart_studio.api.utils import to_native_utf8_string
  from chart_studio.api.v2 import utils
  from chart_studio.exceptions import PlotlyRequestError
  from chart_studio.session import sign_in
  from chart_studio.tests.test_plot_ly.test_api import PlotlyApiTestCase
label_desc: Use image node_id 4 for calling the RequestTest obj's underlying member method code with example usage: obj.test_request_with_ConnectionError() without return types