def METHOD_NAME(run: Run, trace_data_tree: TreeView, length: int, name: str, context: Dict):
    if name.startswith('__system'):
        seq = run.sequences.typed_sequence(SystemMetric, name, context)
    else:
        seq = run.get_metric(name, context)  # only Metric sequences had V2 data format
    trace_iter = zip(trace_data_tree.subtree('step').items(),
                     trace_data_tree.subtree('val').items(),
                     trace_data_tree.subtree('time').items(),
                     trace_data_tree.subtree('epoch').items())
    trace_iter = tqdm.tqdm(trace_iter, leave=False, total=length)
    context_str = str(context)
    if len(context_str) > 20:
        context_str = context_str[:16] + '...}'
    for (_, step), (_, value), (_, time), (_, epoch) in trace_iter:
        trace_iter.set_description(f'Processing sequence context={context_str}, name=\'{name}\'')
        seq.track(value, step=step, epoch=epoch, time=time)