human
Can you provide a the Python code you requested given the following:
Complete the below
def _test_logged_method(method_name, original_name):

    ''''Decorator for logging message to Eliot logger.
    - Log before calling given ``method_name``.
    - Log if ``method_name`` resulted in an ``Exception``.'
    '''
assistant
#Here is the Python code you requested.
    def _run_with_logging(self, *args, **kwargs):
        original = getattr(self, original_name)
        method = getattr(original, method_name)
        try:
            TEST_MESSAGE(method=method_name.decode('ascii')).write()
            return method(*args, **kwargs)
        except Exception:
            TEST_EXCEPTION(method=method_name.decode('ascii')).write()
            raise
    return _run_with_logging