def _get_upload_part_data(self, file_id):
        account_info = self.api.account_info
        upload_url, upload_auth_token = account_info.take_large_file_upload_url(file_id)
        if None not in (upload_url, upload_auth_token):
            return upload_url, upload_auth_token

        response = self.api.session.get_upload_part_url(file_id)
        return (response['uploadUrl'], response['authorizationToken'])
Makes sure that we have an upload URL and auth token for the given bucket and
dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/bucket.py/Bucket._get_upload_part_data