def METHOD_NAME(self, func, expected_result, exitcode, int_type, min, max, node=None):
    """Check mathematical functions with Int128, UInt128, Int256, and UInt256 using inline tests.
    """
    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 {int_type} using 1, max, and min"):
            node.query(f"SELECT {func} to{int_type}(1)), {func} to{int_type}(\'{max}\')), {func} to{int_type}(\'{min}\'))",
                exitcode=exitcode, message = 'Exception:')
    else:
        with When(f"I check {func} with {int_type} using 1"):
            output = node.query(f"SELECT {func} to{int_type}(1))").output
            if output == 'inf':
                pass
            else:
                assert round(float(output)) == expected_result, error()
        with And(f"I check {func} with {int_type} using max and min"):
            execute_query(f"""
                SELECT round({func} to{int_type}(\'{max}\')), {rounding_precision}), round({func} to{int_type}(\'{min}\')), {rounding_precision})
                """)