code: def get_response(self, content=b"", status_code=200):
      response = Response()
      response.status_code = status_code
      response._content = content
      response.encoding = "utf-8"
      return response
  
file_path: plotly.py/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py
imports: from __future__ import absolute_import
  from requests import Response
  from chart_studio.session import sign_in
  from chart_studio.tests.utils import PlotlyTestCase
  import sys
label_desc: Use image node_id 4 for calling the PlotlyApiTestCase obj's underlying member method code with example usage: obj.get_response(content, status_code) and returns: response