def __call__(self, form, form_opts=None, field_args={}):
        context = helpers.get_render_ctx()
        macro = self._resolve(context, self.macro_name)

        if not macro:
            raise ValueError('Cannot find macro %s in current context.' % self.macro_name)

        opts = dict(self.default_args)
        opts.update(field_args)
        return macro(**opts)
Render macro rule.
dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/form/rules.py/Macro.__call__