code: def test_get_credentials(self):
      session_credentials = session.get_session_credentials()
      if "username" in session_credentials:
          del session._session["credentials"]["username"]
      if "api_key" in session_credentials:
          del session._session["credentials"]["api_key"]
      creds = py.get_credentials()
      file_creds = tls.get_credentials_file()
      self.assertEqual(creds, file_creds)
  
file_path: plotly.py/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py
imports: from __future__ import absolute_import
  import _plotly_utils.exceptions
  from chart_studio import plotly, exceptions
  import chart_studio.session
  import chart_studio.tools
  from chart_studio.tests.utils import PlotlyTestCase
  import sys
label_desc: Use image node_id 2 for calling the TestSignIn obj's underlying member method code with example usage: obj.test_get_credentials() without return types