code: def has_axon(neuron, treefun=_read_neurite_type):
      '''Check if a neuron has an axon
  
      Arguments:
          neuron(Neuron): The neuron object to test
          treefun: Optional function to calculate the tree type of
          neuron's neurites
  
      Returns:
          CheckResult with result
      '''
      return CheckResult(NeuriteType.axon in (treefun(n) for n in neuron.neurites)f has_axon(neuron, treefun=_read_neurite_type):
      '''Check if a neuron has an axon
  
      Arguments:
          neuron(Neuron): The neuron object to test
          treefun: Optional function to calculate the tree type of
          neuron's neurites
  
      Returns:
          CheckResult with result
      '''
      return CheckResult(NeuriteType.axon in (treefun(n) for n in neuron.neurites))
docs: Check if a neuron has an axon
  
      Arguments:
          neuron(Neuron): The neuron object to test
          treefun: Optional function to calculate the tree type of
          neuron's neurites
  
      Returns:
          CheckResult with result