import warnings


def is_equal(v1, v2):
    """
    Function for basic comparison compare.

    Parameters
    ----------
    v1: Any
        first value
    v2: Any
        second value

    Returns
    -------
    result : bool
        Returns ``True`` if ``v1`` and ``v2`` are equivalent.
        If an exception is raised during comparison, returns ``False``.

    Warns
    -----
    UserWarning
        If an exception is raised during comparison.
    """
    try:
        return bool(v1 == v2)
    except Exception as e:
        warnings.warn(
            "Comparison method failed. Returned False. "
            f"There may be need to define custom compare methods in __equality_checks__ dictionary. Exception {e}"
        )
        return False