def METHOD_NAME(prepared_sandbox_args, error_code):
    """TiktokMarketing sends the header 'Retry-After' about needed delay.
    All streams have to handle it"""
    stream = Advertisers(**prepared_sandbox_args)
    with requests_mock.Mocker() as m:
        url = stream.url_base + stream.path()
        m.get(url, text=json.dumps({"code": error_code}))
        with pytest.raises(UserDefinedBackoffException):
            list(stream.read_records(sync_mode=None))