human
I wrote the below code

    called_print = []
    class Expensive(object, ):
        def __repr__(self):
            called_print.append(1)
            return 'expensive    data    preparation'
    slogging.configure(log_json=True)
    log = slogging.get_logger()
    log.trace('no', data=Expensive())
    assert (not called_print)
    log.info('yes', data=Expensive())
    assert called_print.pop()

What's a good function header?
assistant
#Here is Python program to print = []
.

def test_lazy_log():