def METHOD_NAME(self, func, expected_result, exitcode, node=None):
    """Check mathematical functions with Decimal256 using inline tests.
    """
    min = Decimal256_min_max[0]
    max = Decimal256_min_max[1]
    if node is None:
        node = self.context.node
    if func in ['intExp2(', 'intExp10(', 'pow(1,', 'power(1,', 'atan2(1,', 'hypot(1,']:
        with When(f"I check {func} with Decimal256 using 1, max, and min"):
            node.query(f"SELECT {func} toDecimal256(1,0)), {func} toDecimal256(\'{max}\',0)), {func} toDecimal256(\'{min}\',0))",
                exitcode=43, message = 'Exception: Illegal type ')
    else:
        with When(f"I check {func} with Decimal256 using 1"):
            output = node.query(f"SELECT {func} toDecimal256(1,0))").output
            if output == 'inf':
                pass
            else:
                assert round(float(output)) == expected_result, error()
        with And(f"I check {func} with Decimal256 using max and min"):
            execute_query(f"""
                SELECT round({func} toDecimal256(\'{max}\',0)),{rounding_precision}), round({func} toDecimal256(\'{min}\',0)),{rounding_precision})
                """)