code: def _get_requested_claims_in(self, authentication_request, response_method):
          # type (oic.oic.message.AuthorizationRequest, str) -> Mapping[str, Optional[Mapping[str, Union[str, List[str]]]]
          
          if response_method != 'id_token' and response_method != 'userinfo':
              raise ValueError('response_method must be \'id_token\' or \'userinfo\'')
  
          requested_claims = {}
  
          if 'claims' in authentication_request and response_method in authentication_request['claims']:
              requested_claims.update(authentication_request['claims'][response_method])
          return requested_claims
docs: Parses any claims requested using the 'claims' request parameter, see
          <a href="http://openid.net/specs/openid-connect-core-1_0.html#ClaimsParameter">
          "OpenID Connect Core 1.0", Section 5.5</a>.
          :param authentication_request: the authentication request
          :param response_method: 'id_token' or 'userinfo'