def METHOD_NAME(constraint):
    """
    Return operator and version from a constraint
    For example:
    >>> assert parse_constraint(">=7.0.0") == ('>=', '7.0.0')
    >>> assert parse_constraint("=7.0.0") == ('=', '7.0.0')
    >>> assert parse_constraint("[3.0.0") == ('[', '3.0.0')
    >>> assert parse_constraint("3.1.25]") == (']', '3.1.25')
    """
    if constraint.startswith(("<=", ">=", "==", "!=")):
        return constraint[:2], constraint[2:]
    if constraint.startswith(("<", ">", "=", "[", "(")):
        return constraint[0], constraint[1:]
    if constraint.endswith(("]", ")")):
        return constraint[-1], constraint[:-1]