def _validate_user_data(self, user_data):
        """Check if the user_data is encoded properly"""
        if not user_data:
            return
        try:
            user_data = base64.b64decode(user_data)
        except __HOLE__:
            expl = _('Userdata content cannot be decoded')
            raise exc.HTTPBadRequest(explanation=expl)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/create_instance_helper.py/CreateInstanceHelper._validate_user_data