def clean_params(self):
        params = self.cleaned_data.get('params', '{}')
        try:
            params_dict = json.loads(params)
        except __HOLE__ as e:
            raise forms.ValidationError(e.msg)
        if not params_dict.get('labels', None):
            raise forms.ValidationError('Please specify `labels` key')
        if not params_dict.get('series', None):
            raise forms.ValidationError('Please specify `series` key')
        return params
dataset/ETHPy150Open allegro/ralph/src/ralph/dashboards/admin.py/GraphForm.clean_params