import operator


def get_operator_function(op_sign):
    """
    Get operator function from sign
    Args:
        op_sign (str): operator sign

    Returns:
        operator function
    """
    return {
        '>': operator.gt,
        '<': operator.lt,
        '>=': operator.ge,
        '<=': operator.le,
        '==': operator.eq,
        '!=': operator.ne,
    }[op_sign]