code: def growSynapses(self, segments, activeInputsBySource, initialPermanence):
      
      for source, connections in self.connectionsBySource.iteritems():
        connections.growSynapses(segments, activeInputsBySource[source],
                                 initialPermanence)
docs: Grow synapses to each of the specified inputs on each specified segment.
  
      @param segments (numpy array)
      The segments that should add synapses
  
      @param activeInputsBySource (dict)
      The active cells in each source. Example:
        {"customInputName1": np.array([42, 69])}
  
      @param initialPermanence (float)