def describe(profile, description):
    api_type = description.pop('type', 'core')
    api = getattr(profile, api_type)
    return refine(api.query, description)
Generate a query by describing it as a series of actions
dataset/ETHPy150Open debrouwere/google-analytics/googleanalytics/query.py/describe