def METHOD_NAME(self, inline_query_result_cached_mpeg4_gif):
    inline_query_result_cached_mpeg4_gif_dict = inline_query_result_cached_mpeg4_gif.to_dict()
    assert isinstance(inline_query_result_cached_mpeg4_gif_dict, dict)
    assert (
        inline_query_result_cached_mpeg4_gif_dict["type"]
        == inline_query_result_cached_mpeg4_gif.type
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["id"]
        == inline_query_result_cached_mpeg4_gif.id
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["mpeg4_file_id"]
        == inline_query_result_cached_mpeg4_gif.mpeg4_file_id
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["title"]
        == inline_query_result_cached_mpeg4_gif.title
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["caption"]
        == inline_query_result_cached_mpeg4_gif.caption
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["parse_mode"]
        == inline_query_result_cached_mpeg4_gif.parse_mode
    )
    assert inline_query_result_cached_mpeg4_gif_dict["caption_entities"] == [
        ce.to_dict() for ce in inline_query_result_cached_mpeg4_gif.caption_entities
    ]
    assert (
        inline_query_result_cached_mpeg4_gif_dict["input_message_content"]
        == inline_query_result_cached_mpeg4_gif.input_message_content.to_dict()
    )
    assert (
        inline_query_result_cached_mpeg4_gif_dict["reply_markup"]
        == inline_query_result_cached_mpeg4_gif.reply_markup.to_dict()
    )