code: def test_get_accounts(self):
      account = self.service.create_account(self.auth)
      non_admin_auth = Authentication(account.api_key)
  
      accounts = self.service.get_accounts(self.auth)
      assert len(accounts) == 2
  
      # Only admins can get all accounts
      raised = False
      try:
          self.service.get_accounts(non_admin_auth)
      except Exception as e:
          raised = True
          assert type(e) == AuthenticationError
      assert raised
  
imports: import copy
  import pytest
  import shutil
  import tempfile
  from helm.common.authentication import Authentication
  from helm.common.request import Request
  from helm.proxy.accounts import AuthenticationError, Accounts
  from helm.proxy.query import Query
  from .server_service import ServerService
label_desc: Use image node_id 8 for calling the TestServerService obj's underlying member method code with example usage: obj.test_get_accounts() without return types