def METHOD_NAME(
    self,
    account_id,
    auth_token,
    api_url,
    download_url,
    minimum_part_size,
    application_key,
    realm,
    allowed=None,
    application_key_id=None,
    s3_api_url=None,
):
    if 's3_api_url' in inspect.getfullargspec(self._set_auth_data).args:
        s3_kwargs = dict(s3_api_url=s3_api_url)
    else:
        s3_kwargs = {}
    if allowed is None:
        allowed = self.DEFAULT_ALLOWED
    assert self.allowed_is_valid(allowed)
    self._set_auth_data(
        account_id=account_id,
        auth_token=auth_token,
        api_url=api_url,
        download_url=download_url,
        minimum_part_size=minimum_part_size,
        application_key=application_key,
        realm=realm,
        allowed=allowed,
        application_key_id=application_key_id,
        **s3_kwargs,
    )