code: def process_sequence(data, converters, chunk):
      byte_size = 0
      for converter in converters.values():
          converter.start_sequence()
      for line in data:
          for input_stream in line.split("|")[1:]:
              split = input_stream.split(None, 1)
              if len(split) < 2:
                  continue
              (alias, values) = split
              # We need to ignore comments
              if len(alias) > 0 and alias[0] != "#":
                  byte_size += converters[alias].add_sample(
                      values.split()
                  )
      sequence_length_samples = max(
          [len(x.sequences[-1]) for x in converters.values()]
      )
      chunk.add_sequence(sequence_length_samples)
      return byte_size
  
imports: import sys
  import argparse
  import struct
  import os
  from collections import OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: process_sequence(data, converters, chunk) and returns: byte_size