code: def get_toxicity_scores(
      self, auth: Authentication, request: PerspectiveAPIRequest
  ) -> PerspectiveAPIRequestResult:
      request_json: str = json.dumps(asdict(request))
      params = {
          "auth": json.dumps(asdict(auth)),
          "request": request_json,
      }
      response = requests.get(
          f"{self.base_url}/api/toxicity?{urllib.parse.urlencode(params)}"
      ).json()
      RemoteService._check_response(response, request_json)
      return from_dict(PerspectiveAPIRequestResult, response)
  
imports: import argparse
  import json
  import requests
  import urllib.parse
  from dataclasses import asdict
  from typing import Any, List, Optional
  from helm.common.authentication import Authentication
  from helm.common.critique_request import CritiqueRequest, CritiqueRequestResult
  from helm.common.perspective_api_request import PerspectiveAPIRequest, PerspectiveAPIRequestResult
  from helm.common.tokenization_request import WindowServiceInfo, TokenizationRequest, TokenizationRequestResult, DecodeRequestResult, DecodeRequest
  from helm.common.request import Request, RequestResult
  from dacite import from_dict
  from helm.proxy.accounts import Account
  from helm.proxy.query import Query, QueryResult
  from .service import Service, GeneralInfo
label_desc: Use image node_id 9 for calling the RemoteService obj's underlying member method code with example usage: obj.get_toxicity_scores(auth, request) and returns: from_dict