def has_basal_dendrite(neuron, min_number=<NUM_LIT:1>, treefun=_read_neurite_type):
types = [treefun(n) for n in neuron.neurites]<EOL>return CheckResult(types.count(NeuriteType.basal_dendrite) >= min_number)<EOL>
Check if a neuron has basal dendrites

    Arguments:
        neuron(Neuron): The neuron object to test
        min_number: minimum number of basal dendrites required
        treefun: Optional function to calculate the tree type of neuron's
        neurites

    Returns:
        CheckResult with result