def decode_iter_request(data: dict) -> Optional[Union[str, int]]:
if "<STR_LIT>" in data:<EOL><INDENT>return data["<STR_LIT>"].get("<STR_LIT>")<EOL><DEDENT>elif "<STR_LIT>" in data:<EOL><INDENT>current_page = int(data["<STR_LIT>"].get("<STR_LIT>", <NUM_LIT:1>))<EOL>max_page = int(data["<STR_LIT>"].get("<STR_LIT>", <NUM_LIT:1>))<EOL>if current_page < max_page:<EOL><INDENT>return current_page + <NUM_LIT:1><EOL><DEDENT><DEDENT>elif "<STR_LIT>" in data and data["<STR_LIT>"] and "<STR_LIT>" in data:<EOL><INDENT>return data["<STR_LIT>"][-<NUM_LIT:1>]["<STR_LIT>"]<EOL><DEDENT>return None<EOL>
Decode incoming response from an iteration request

Args:
    data: Response data

Returns:
    Next itervalue