code: def to_parts(spans, extra, lengths=None):
      return spans
  
file_path: pytorch-struct/torch_struct/helpers.py
imports: import torch
  import math
  from .semirings import LogSemiring
label_desc: Use image node_id 9 for calling the _Struct obj's underlying member method code with example usage: obj.to_parts(spans, extra, lengths) and returns: spans