def METHOD_NAME(ctx: Context, actor: Actor) -> Optional[str]:
    """
    Extract the genre from user request if present
    Use adapter to insert as a condition or a processing function
    """
    last_request = ctx.last_request
    for key in GENRE_DICT.keys():
        if re.search(GENRE_DICT[key], last_request):
            return key
    return None