code: def trunk_section_lengths(nrn, neurite_type=NeuriteType.all):
      '''list of lengths of trunk sections of neurites in a neuron'''
      neurite_filter = is_type(neurite_type)
      return [morphmath.section_length(s.root_node.points)
              for s in nrn.neurites if neurite_filter(s)f trunk_section_lengths(nrn, neurite_type=NeuriteType.all):
      '''list of lengths of trunk sections of neurites in a neuron'''
      neurite_filter = is_type(neurite_type)
      return [morphmath.section_length(s.root_node.points)
              for s in nrn.neurites if neurite_filter(s)]
docs: list of lengths of trunk sections of neurites in a neuron