code: def list(
          self,
          **kwargs
      ):
          
  
          request = Request(
              'GET',
              '/v3/accounts'
          )
  
          response = self.ctx.request(request)
  
  
          if response.content_type is None:
              return response
  
          if not response.content_type.startswith("application/json"):
              return response
  
          jbody = json.loads(response.raw_body)
  
          parsed_body = {}
  
          #
          # Parse responses as defined by the API specification
          #
          if str(response.status) == "200":
              if jbody.get('accounts') is not None:
                  parsed_body['accounts'] = [
                      self.ctx.account.AccountProperties.from_dict(d, self.ctx)
                      for d in jbody.get('accounts')
                  ]
  
          elif str(response.status) == "401":
              if jbody.get('errorCode') is not None:
                  parsed_body['errorCode'] = \
                      jbody.get('errorCode')
  
              if jbody.get('errorMessage') is not None:
                  parsed_body['errorMessage'] = \
                      jbody.get('errorMessage')
  
          elif str(response.status) == "405":
              if jbody.get('errorCode') is not None:
                  parsed_body['errorCode'] = \
                      jbody.get('errorCode')
  
              if jbody.get('errorMessage') is not None:
                  parsed_body['errorMessage'] = \
                      jbody.get('errorMessage')
  
          #
          # Unexpected response status
          #
          else:
              parsed_body = jbody
  
          response.body = parsed_body
  
          return response
docs: Get a list of all Accounts authorized for the provided token.
  
          Args:
  
          Returns:
              v20.response.Response containing the results from submitting the
              request