def mock_code(name):
    left_args = (0, 0, 0, 0, b'', (), (), (), '')
    if PY3:
        left_args = (0,) + left_args
    args = left_args + (name, 0, b'')
    return CodeType(*args)
Load document and children from database and create properties
dataset/ETHPy150Open what-studio/profiling/test/test_stats.py/mock_code--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.load_from_db