def extract(dct, transform):
  # If we're at the point where we've found the transformed data, return it
  if transform in dct:
    return dct[transform]

  rval = type(dct)()
  for k,v in dct.iteritems():
    rval[k] = extract(v, transform)
  return rval
Approves current draft
dataset/ETHPy150Open agoragames/torus/torus/web.py/extract--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/admin/pre_reg/views.py/approve_draft