<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getEntropies(m):
 """ Recursively get the current and max entropies from every child module :param m: any module :return: (currentEntropy, maxEntropy) """

  entropy = 0.0
  max_entropy = 0.0
  for module in m.children():
    e, m = getEntropies(module)
    entropy += e
    max_entropy += m

  e, m = getEntropy(m)
  entropy += e
  max_entropy += m

  return entropy, max_entropy