code: def from_response(response):
          '''
          Create an error of the right class from an API response.
  
          :param   response    dict        Response JSON
          '''
          cls = PLAID_ERROR_TYPE_MAP.get(response['error_type'], PlaidError)
          return cls(response['error_message'],
                     response['error_type'],
                     response['error_code'],
                     response['display_message'],
                     response['request_id'],
                     response.get('causes')f from_response(response):
          '''
          Create an error of the right class from an API response.
  
          :param   response    dict        Response JSON
          '''
          cls = PLAID_ERROR_TYPE_MAP.get(response['error_type'], PlaidError)
          return cls(response['error_message'],
                     response['error_type'],
                     response['error_code'],
                     response['display_message'],
                     response['request_id'],
                     response.get('causes'))
docs: Create an error of the right class from an API response.
  
          :param   response    dict        Response JSON