code: def _split_list(items, separator):
      """
      Splits a sequence (such as a tensor) by the specified separator
  
      Arguments
      ---------
      items: sequence
          any sequence that supports indexing
  
      Results
      -------
      separator: str
          the separator token
      """
      if items is not None:
          last_idx = -1
          for idx, item in enumerate(items):
              if item == separator:
                  yield items[last_idx + 1 : idx]
                  last_idx = idx
          if last_idx < idx - 1:
              yield items[last_idx + 1 :]
  
imports: from functools import reduce
  from speechbrain.wordemb.util import expand_to_chars
  import speechbrain
  import torch
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: _split_list(items, separator) without return types