code: def __init__(self, parts):
      self.parts = np.array(parts, ndmin=1)
      self.lenghts = np.array([len(p) for p in parts])
      self.starts = self.lenghts.cumsum()
  
imports: from __future__ import absolute_import
  import re
  import math
  from typing import List, Tuple, Union, Optional
  import numpy
  from sklearn.utils import check_random_state
  from eli5.utils import indices_to_bool_mask, vstack
label_desc: Use image node_id 1 to create a new SplitResult object from inherited base classes: object with example: obj = SplitResult(parts)