def __init__(self, domain, xmlns, app_id=None):
        self.domain = domain
        self.xmlns = xmlns
        if app_id:
            self.app_id = app_id
        else:
            form = get_form_analytics_metadata(domain, app_id, xmlns)
            try:
                self.app_id = form['app']['id'] if form else None
            except __HOLE__:
                self.app_id = None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/display.py/_FormType.__init__