from typing import Any


def contains(value: Any, element: str) -> bool:
    """
    Check if the value contains the given element
    """
    try:
        value.index(element)
        return True
    except:
        return False