code: def setUp(self):
      super(RequestTest, self).setUp()
  
      # Mock the actual api call, we don't want to do network tests here.
      self.request_mock = self.mock(
          "chart_studio.api.v2.utils.requests.request"
      )
      self.request_mock.return_value = self.get_response()
  
      # Mock the validation function since we can test that elsewhere.
      self.validate_response_mock = self.mock(
          "chart_studio.api.v2.utils.validate_response"
      )
  
      self.method = "get"
      self.url = "https://foo.bar.does.not.exist.anywhere"
  
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 1 for calling the RequestTest obj's underlying member method code with example usage: obj.setUp() without return types