code: def test_valid_creds_pass(self):
      response = self.fetch(
          "/endpoints",
          method="GET",
          headers={
              "Authorization": "Basic {}".format(
                  base64.b64encode(
                      "username:password".encode("utf-8")
                  ).decode("utf-8")
              )
          },
      )
      self.assertEqual(200, response.code)
  
file_path: TabPy/tests/unit/server_tests/test_endpoints_handler.py
imports: import base64
  import os
  import tempfile
  from tabpy.tabpy_server.app.app import TabPyApp
  from tabpy.tabpy_server.handlers.util import hash_password
  from tornado.testing import AsyncHTTPTestCase
label_desc: Use image node_id 6 for calling the TestEndpointsHandlerWithAuth obj's underlying member method code with example usage: obj.test_valid_creds_pass() without return types