<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def growSynapses(self, segments, activeInputsBySource, initialPermanence):
 """ 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) """

    for source, connections in self.connectionsBySource.iteritems():
      connections.growSynapses(segments, activeInputsBySource[source],
                               initialPermanence)