def METHOD_NAME(f, *args, **kwargs):
    """ Run the given function on the given arguments. In debug mode, print the function call. """
    if os.getenv('MESON_INSTALL_QUIET') is None:
        # HACK: when tracing a function call, use unittest.mock to construct a pretty-printable version.
        # HACK: when tracing subprocess shell commands, format them because it's unreadable otherwise.
        if f.__module__ == 'subprocess' and len(args) == 1:
            from subprocess import list2cmdline
            print('$', list2cmdline(args[0]))
        else:
            from unittest import mock
            call = getattr(mock.call, f.__name__)(*args, **kwargs)
            print(str(call).replace('call.', '', 1))
    return f(*args, **kwargs)